diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index fda2aa2e7466..7a9cf28c510c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -18116,6 +18116,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$SourceCodeSpec$GitSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$SourceCodeSpec$GitSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$SourceCodeSpec$ImageSpec", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index cedbed573965..15eeeeab6e8f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -23606,6 +23606,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$SourceCodeSpec$GitSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$SourceCodeSpec$GitSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$SourceCodeSpec$ImageSpec", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java index 2fde757d2a83..06ea0e921fb5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java @@ -80,6 +80,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -115,7 +119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037google/api/field_behavior.proto\032\031google" + "/api/resource.proto\0320google/cloud/aiplatform/v1/encryption_spec.proto\032(google/cl" + "oud/aiplatform/v1/env_var.proto\0323google/cloud/aiplatform/v1/service_networking.p" - + "roto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\335\025\n" + + "roto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\210\027\n" + "\023ReasoningEngineSpec\022Z\n" + "\020source_code_spec\030\013 \001(\0132>." + "google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpecH\000\022W\n" @@ -155,22 +159,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\346\010\n" + + "\026_container_concurrency\032\221\n\n" + "\016SourceCodeSpec\022d\n\r" + "inline_source\030\001 \001(\0132K.google.cloud.aiplatform.v1.Reasonin" + "gEngineSpec.SourceCodeSpec.InlineSourceH\000\022y\n" + "\030developer_connect_source\030\003 \001(\0132U.go" + "ogle.cloud.aiplatform.v1.ReasoningEngine" - + "Spec.SourceCodeSpec.DeveloperConnectSourceH\000\022`\n" - + "\013python_spec\030\002 \001(\0132I.google.cloud" - + ".aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\022d\n\n" - + "image_spec\030\005 \001(\0132H.google.cloud.aiplatform.v1.Reasonin" - + "gEngineSpec.SourceCodeSpec.ImageSpecB\004\342A\001\001H\001\032-\n" + + "Spec.SourceCodeSpec.DeveloperConnectSourceH\000\022^\n\n" + + "git_source\030\006 \001(\0132H.google.cloud." + + "aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceH\000\022`\n" + + "\013python_spec\030\002 \001(\0132I.google.cloud.aiplatform.v1.Reasoning" + + "EngineSpec.SourceCodeSpec.PythonSpecH\001\022d\n\n" + + "image_spec\030\005 \001(\0132H.google.cloud.aiplat" + + "form.v1.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\260\001\n" + "\tImageSpec\022q\n\n" - + "build_args\030\001 \003(\0132W.google.cloud.aiplatform.v1.Reaso" - + "ningEngineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\004\342A\001\001\0320\n" + + "build_args\030\001 \003(\0132W.google.cloud.aip" + + "latform.v1.ReasoningEngineSpec.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" @@ -180,8 +186,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\205\001\n" + "\026DeveloperConnectSource\022k\n" - + "\006config\030\001 \001(\0132U.google.cloud.aiplatform.v1.ReasoningEngineSpe" - + "c.SourceCodeSpec.DeveloperConnectConfigB\004\342A\001\002\032\206\001\n\n" + + "\006config\030\001 \001(\0132U.google.cloud.aiplatform.v1.Re" + + "asoningEngineSpec.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" @@ -204,8 +214,8 @@ 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\022C\n" - + "\004spec\030\003 \001(\013" - + "2/.google.cloud.aiplatform.v1.ReasoningEngineSpecB\004\342A\001\001\0225\n" + + "\004spec\030\003" + + " \001(\0132/.google.cloud.aiplatform.v1.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" @@ -213,21 +223,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004etag\030\006 \001(\tB\004\342A\001\001\022C\n" + "\017encryption_spec\030\013" + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\022G\n" - + "\006labels\030\021 \003(\01327.google." - + "cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\032-\n" + + "\006labels\030\021 \003(" + + "\01327.google.cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\032-\n" + "\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/{proj" - + "ect}/locations/{location}/reasoningEngin" - + "es/{reasoning_engine}*\020reasoningEngines2\017reasoningEngineB\364\002\n" - + "\036com.google.cloud.aiplatform.v1B\024ReasoningEngineProtoP\001Z>clo" - + "ud.google.com/go/aiplatform/apiv1/aiplat" - + "formpb;aiplatformpb\252\002\032Google.Cloud.AIPla" - + "tform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352A\236\001\n" - + "1developerconnect.googleapis.com/GitRepository" - + "Link\022iprojects/{project}/locations/{location}/connections/{connection}/gitReposi" - + "toryLinks/{git_repository_link}b\006proto3" + + ")aiplatform.googleapis.com/ReasoningEngine\022Kpro" + + "jects/{project}/locations/{location}/rea" + + "soningEngines/{reasoning_engine}*\020reasoningEngines2\017reasoningEngineB\364\002\n" + + "\036com.google.cloud.aiplatform.v1B\024ReasoningEngineP" + + "rotoP\001Z>cloud.google.com/go/aiplatform/a" + + "piv1/aiplatformpb;aiplatformpb\252\002\032Google." + + "Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPla" + + "tform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{project}/loca" + + "tions/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_lin" + + "k}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -297,6 +308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "InlineSource", "DeveloperConnectSource", + "GitSource", "PythonSpec", "ImageSpec", "Source", @@ -347,9 +359,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Config", }); - internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor = + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor = internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor .getNestedType(4); + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor, + new java.lang.String[] { + "Url", "Dir", "Revision", + }); + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor = + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor + .getNestedType(5); internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java index 244d23fce0f9..651c6c50c490 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java @@ -4934,6 +4934,50 @@ public interface SourceCodeSpecOrBuilder .DeveloperConnectSourceOrBuilder getDeveloperConnectSourceOrBuilder(); + /** + * + * + *
+ * 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-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..b0f63a712c85 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,6 +803,223 @@
*
*
*
+ * 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.
+ *
+ * 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.
+ *
+ * createAutoProtectionPolicyOperationCallable()
+ *
createAutoProtectionPolicyCallable()
+ *
+ *
+ *
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * listAutoProtectionPoliciesPagedCallable()
+ *
listAutoProtectionPoliciesCallable()
+ *
+ *
+ *
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * getAutoProtectionPolicyCallable()
+ *
+ *
+ *
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * updateAutoProtectionPolicyOperationCallable()
+ *
updateAutoProtectionPolicyCallable()
+ *
+ *
+ *
+ *
+ * DeleteAutoProtectionPolicy
+ * Deletes a single AutoProtectionPolicy.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * 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.
+ *
+ * deleteAutoProtectionPolicyOperationCallable()
+ *
deleteAutoProtectionPolicyCallable()
+ *
+ *
+ *
+ *
+ * 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()
+ *
+ *
+ *
+ *
* ListLocations
* Lists information about the supported locations for this service.
*
@@ -5925,6 +6142,10 @@ public final OperationFuture deleteBackupPlanAssociati
* "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]")
* .toString())
* .setRequestId("requestId693933066")
+ * .setAutoProtectionPolicyBinding(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
* .build();
* backupDRClient.deleteBackupPlanAssociationAsync(request).get();
* }
@@ -5958,6 +6179,10 @@ public final OperationFuture deleteBackupPlanAssociati
* "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]")
* .toString())
* .setRequestId("requestId693933066")
+ * .setAutoProtectionPolicyBinding(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
* .build();
* OperationFuture future =
* backupDRClient.deleteBackupPlanAssociationOperationCallable().futureCall(request);
@@ -5991,6 +6216,10 @@ public final OperationFuture deleteBackupPlanAssociati
* "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]")
* .toString())
* .setRequestId("requestId693933066")
+ * .setAutoProtectionPolicyBinding(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
* .build();
* ApiFuture future =
* backupDRClient.deleteBackupPlanAssociationCallable().futureCall(request);
@@ -6767,7 +6996,7 @@ public final UnaryCallable initializeServic
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.
+ * Creates a new AutoProtectionPolicy in a given project and location.
*
* Sample code:
*
@@ -6778,29 +7007,42 @@ public final UnaryCallable initializeServic
* // - 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()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * for (Location element : backupDRClient.listLocations(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build();
+ * String autoProtectionPolicyId = "autoProtectionPolicyId1759243253";
+ * AutoProtectionPolicy response =
+ * backupDRClient
+ * .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId)
+ * .get();
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param parent Required. The parent resource where this policy will be created. Format:
+ * projects/{project}/locations/{location}
+ * @param autoProtectionPolicy Required. The AutoProtectionPolicy resource to create.
+ * @param autoProtectionPolicyId Required. The ID to use for the policy. This will become the
+ * final component of the policy's resource name.
+ * This value must start with a lowercase letter followed by up to 62 lowercase letters,
+ * numbers, or hyphens, and cannot end with a hyphen.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
- return listLocationsPagedCallable().call(request);
+ public final OperationFuture
+ createAutoProtectionPolicyAsync(
+ @Nullable LocationName parent,
+ AutoProtectionPolicy autoProtectionPolicy,
+ String autoProtectionPolicyId) {
+ CreateAutoProtectionPolicyRequest request =
+ CreateAutoProtectionPolicyRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setAutoProtectionPolicy(autoProtectionPolicy)
+ .setAutoProtectionPolicyId(autoProtectionPolicyId)
+ .build();
+ return createAutoProtectionPolicyAsync(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.
+ * Creates a new AutoProtectionPolicy in a given project and location.
*
* Sample code:
*
@@ -6811,29 +7053,40 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - 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()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * ApiFuture future = backupDRClient.listLocationsPagedCallable().futureCall(request);
- * // Do something.
- * for (Location element : future.get().iterateAll()) {
- * // doThingsWith(element);
- * }
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build();
+ * String autoProtectionPolicyId = "autoProtectionPolicyId1759243253";
+ * AutoProtectionPolicy response =
+ * backupDRClient
+ * .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId)
+ * .get();
* }
* }
+ *
+ * @param parent Required. The parent resource where this policy will be created. Format:
+ * projects/{project}/locations/{location}
+ * @param autoProtectionPolicy Required. The AutoProtectionPolicy resource to create.
+ * @param autoProtectionPolicyId Required. The ID to use for the policy. This will become the
+ * final component of the policy's resource name.
+ * This value must start with a lowercase letter followed by up to 62 lowercase letters,
+ * numbers, or hyphens, and cannot end with a hyphen.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable
- listLocationsPagedCallable() {
- return stub.listLocationsPagedCallable();
+ public final OperationFuture
+ createAutoProtectionPolicyAsync(
+ String parent, AutoProtectionPolicy autoProtectionPolicy, String autoProtectionPolicyId) {
+ CreateAutoProtectionPolicyRequest request =
+ CreateAutoProtectionPolicyRequest.newBuilder()
+ .setParent(parent)
+ .setAutoProtectionPolicy(autoProtectionPolicy)
+ .setAutoProtectionPolicyId(autoProtectionPolicyId)
+ .build();
+ return createAutoProtectionPolicyAsync(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.
+ * Creates a new AutoProtectionPolicy in a given project and location.
*
* Sample code:
*
@@ -6844,35 +7097,28 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - 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()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * CreateAutoProtectionPolicyRequest request =
+ * CreateAutoProtectionPolicyRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253")
+ * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build())
+ * .setRequestId("requestId693933066")
* .build();
- * while (true) {
- * ListLocationsResponse response = backupDRClient.listLocationsCallable().call(request);
- * for (Location element : response.getLocationsList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * AutoProtectionPolicy response = backupDRClient.createAutoProtectionPolicyAsync(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 UnaryCallable listLocationsCallable() {
- return stub.listLocationsCallable();
+ public final OperationFuture
+ createAutoProtectionPolicyAsync(CreateAutoProtectionPolicyRequest request) {
+ return createAutoProtectionPolicyOperationCallable().futureCall(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets information about a location.
+ * Creates a new AutoProtectionPolicy in a given project and location.
*
* Sample code:
*
@@ -6883,21 +7129,29 @@ public final UnaryCallable listLoca
* // - 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()) {
- * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- * Location response = backupDRClient.getLocation(request);
+ * CreateAutoProtectionPolicyRequest request =
+ * CreateAutoProtectionPolicyRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253")
+ * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.createAutoProtectionPolicyOperationCallable().futureCall(request);
+ * // Do something.
+ * AutoProtectionPolicy response = future.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 Location getLocation(GetLocationRequest request) {
- return getLocationCallable().call(request);
+ public final OperationCallable<
+ CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ createAutoProtectionPolicyOperationCallable() {
+ return stub.createAutoProtectionPolicyOperationCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets information about a location.
+ * Creates a new AutoProtectionPolicy in a given project and location.
*
* Sample code:
*
@@ -6908,22 +7162,28 @@ public final Location getLocation(GetLocationRequest request) {
* // - 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()) {
- * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- * ApiFuture future = backupDRClient.getLocationCallable().futureCall(request);
+ * CreateAutoProtectionPolicyRequest request =
+ * CreateAutoProtectionPolicyRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253")
+ * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.createAutoProtectionPolicyCallable().futureCall(request);
* // Do something.
- * Location response = future.get();
+ * Operation response = future.get();
* }
* }
*/
- public final UnaryCallable getLocationCallable() {
- return stub.getLocationCallable();
+ public final UnaryCallable
+ createAutoProtectionPolicyCallable() {
+ return stub.createAutoProtectionPolicyCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Sets the access control policy on the specified resource. Replacesany existing policy.
- *
- * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ * Lists AutoProtectionPolicies for a given project and location.
*
*
Sample code:
*
@@ -6934,15 +7194,1851 @@ public final UnaryCallable getLocationCallable() {
* // - 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()) {
- * SetIamPolicyRequest request =
- * SetIamPolicyRequest.newBuilder()
- * .setResource(
- * ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]")
- * .toString())
- * .setPolicy(Policy.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .build();
- * Policy response = backupDRClient.setIamPolicy(request);
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (AutoProtectionPolicy element :
+ * backupDRClient.listAutoProtectionPolicies(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve the list of policies.
+ * Format: projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutoProtectionPoliciesPagedResponse listAutoProtectionPolicies(
+ @Nullable LocationName parent) {
+ ListAutoProtectionPoliciesRequest request =
+ ListAutoProtectionPoliciesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAutoProtectionPolicies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AutoProtectionPolicies for 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 (AutoProtectionPolicy element :
+ * backupDRClient.listAutoProtectionPolicies(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve the list of policies.
+ * Format: projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutoProtectionPoliciesPagedResponse listAutoProtectionPolicies(String parent) {
+ ListAutoProtectionPoliciesRequest request =
+ ListAutoProtectionPoliciesRequest.newBuilder().setParent(parent).build();
+ return listAutoProtectionPolicies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AutoProtectionPolicies for 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()) {
+ * ListAutoProtectionPoliciesRequest request =
+ * ListAutoProtectionPoliciesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (AutoProtectionPolicy element :
+ * backupDRClient.listAutoProtectionPolicies(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 ListAutoProtectionPoliciesPagedResponse listAutoProtectionPolicies(
+ ListAutoProtectionPoliciesRequest request) {
+ return listAutoProtectionPoliciesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AutoProtectionPolicies for 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()) {
+ * ListAutoProtectionPoliciesRequest request =
+ * ListAutoProtectionPoliciesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.listAutoProtectionPoliciesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (AutoProtectionPolicy element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListAutoProtectionPoliciesRequest, ListAutoProtectionPoliciesPagedResponse>
+ listAutoProtectionPoliciesPagedCallable() {
+ return stub.listAutoProtectionPoliciesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AutoProtectionPolicies for 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()) {
+ * ListAutoProtectionPoliciesRequest request =
+ * ListAutoProtectionPoliciesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListAutoProtectionPoliciesResponse response =
+ * backupDRClient.listAutoProtectionPoliciesCallable().call(request);
+ * for (AutoProtectionPolicy element : response.getAutoProtectionPoliciesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listAutoProtectionPoliciesCallable() {
+ return stub.listAutoProtectionPoliciesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AutoProtectionPolicy.
+ *
+ * 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()) {
+ * AutoProtectionPolicyName name =
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]");
+ * AutoProtectionPolicy response = backupDRClient.getAutoProtectionPolicy(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the policy to retrieve. Format:
+ * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutoProtectionPolicy getAutoProtectionPolicy(
+ @Nullable AutoProtectionPolicyName name) {
+ GetAutoProtectionPolicyRequest request =
+ GetAutoProtectionPolicyRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getAutoProtectionPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AutoProtectionPolicy.
+ *
+ * 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 =
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString();
+ * AutoProtectionPolicy response = backupDRClient.getAutoProtectionPolicy(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the policy to retrieve. Format:
+ * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutoProtectionPolicy getAutoProtectionPolicy(String name) {
+ GetAutoProtectionPolicyRequest request =
+ GetAutoProtectionPolicyRequest.newBuilder().setName(name).build();
+ return getAutoProtectionPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AutoProtectionPolicy.
+ *
+ * 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()) {
+ * GetAutoProtectionPolicyRequest request =
+ * GetAutoProtectionPolicyRequest.newBuilder()
+ * .setName(
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString())
+ * .build();
+ * AutoProtectionPolicy response = backupDRClient.getAutoProtectionPolicy(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 AutoProtectionPolicy getAutoProtectionPolicy(
+ GetAutoProtectionPolicyRequest request) {
+ return getAutoProtectionPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AutoProtectionPolicy.
+ *
+ * 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()) {
+ * GetAutoProtectionPolicyRequest request =
+ * GetAutoProtectionPolicyRequest.newBuilder()
+ * .setName(
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.getAutoProtectionPolicyCallable().futureCall(request);
+ * // Do something.
+ * AutoProtectionPolicy response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getAutoProtectionPolicyCallable() {
+ return stub.getAutoProtectionPolicyCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single AutoProtectionPolicy.
+ *
+ * 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()) {
+ * AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * AutoProtectionPolicy response =
+ * backupDRClient.updateAutoProtectionPolicyAsync(autoProtectionPolicy, updateMask).get();
+ * }
+ * }
+ *
+ * @param autoProtectionPolicy Required. The policy to update.
+ * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the
+ * AutoProtectionPolicy 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 all fields will be overwritten.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ updateAutoProtectionPolicyAsync(
+ AutoProtectionPolicy autoProtectionPolicy, FieldMask updateMask) {
+ UpdateAutoProtectionPolicyRequest request =
+ UpdateAutoProtectionPolicyRequest.newBuilder()
+ .setAutoProtectionPolicy(autoProtectionPolicy)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateAutoProtectionPolicyAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single AutoProtectionPolicy.
+ *
+ * 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()) {
+ * UpdateAutoProtectionPolicyRequest request =
+ * UpdateAutoProtectionPolicyRequest.newBuilder()
+ * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * AutoProtectionPolicy response = backupDRClient.updateAutoProtectionPolicyAsync(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
+ updateAutoProtectionPolicyAsync(UpdateAutoProtectionPolicyRequest request) {
+ return updateAutoProtectionPolicyOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single AutoProtectionPolicy.
+ *
+ * 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()) {
+ * UpdateAutoProtectionPolicyRequest request =
+ * UpdateAutoProtectionPolicyRequest.newBuilder()
+ * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.updateAutoProtectionPolicyOperationCallable().futureCall(request);
+ * // Do something.
+ * AutoProtectionPolicy response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ updateAutoProtectionPolicyOperationCallable() {
+ return stub.updateAutoProtectionPolicyOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single AutoProtectionPolicy.
+ *
+ * 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()) {
+ * UpdateAutoProtectionPolicyRequest request =
+ * UpdateAutoProtectionPolicyRequest.newBuilder()
+ * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.updateAutoProtectionPolicyCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateAutoProtectionPolicyCallable() {
+ return stub.updateAutoProtectionPolicyCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single AutoProtectionPolicy.
+ *
+ * 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()) {
+ * AutoProtectionPolicyName name =
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]");
+ * backupDRClient.deleteAutoProtectionPolicyAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the policy to delete. Format:
+ * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteAutoProtectionPolicyAsync(
+ @Nullable AutoProtectionPolicyName name) {
+ DeleteAutoProtectionPolicyRequest request =
+ DeleteAutoProtectionPolicyRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteAutoProtectionPolicyAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single AutoProtectionPolicy.
+ *
+ * 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 =
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString();
+ * backupDRClient.deleteAutoProtectionPolicyAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the policy to delete. Format:
+ * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteAutoProtectionPolicyAsync(
+ String name) {
+ DeleteAutoProtectionPolicyRequest request =
+ DeleteAutoProtectionPolicyRequest.newBuilder().setName(name).build();
+ return deleteAutoProtectionPolicyAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single AutoProtectionPolicy.
+ *
+ * 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()) {
+ * DeleteAutoProtectionPolicyRequest request =
+ * DeleteAutoProtectionPolicyRequest.newBuilder()
+ * .setName(
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString())
+ * .setEtag("etag3123477")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * backupDRClient.deleteAutoProtectionPolicyAsync(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 deleteAutoProtectionPolicyAsync(
+ DeleteAutoProtectionPolicyRequest request) {
+ return deleteAutoProtectionPolicyOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single AutoProtectionPolicy.
+ *
+ * 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()) {
+ * DeleteAutoProtectionPolicyRequest request =
+ * DeleteAutoProtectionPolicyRequest.newBuilder()
+ * .setName(
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString())
+ * .setEtag("etag3123477")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.deleteAutoProtectionPolicyOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteAutoProtectionPolicyOperationCallable() {
+ return stub.deleteAutoProtectionPolicyOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single AutoProtectionPolicy.
+ *
+ * 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()) {
+ * DeleteAutoProtectionPolicyRequest request =
+ * DeleteAutoProtectionPolicyRequest.newBuilder()
+ * .setName(
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString())
+ * .setEtag("etag3123477")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.deleteAutoProtectionPolicyCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteAutoProtectionPolicyCallable() {
+ return stub.deleteAutoProtectionPolicyCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new AutoProtectionPolicyBinding 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()) {
+ * AutoProtectionPolicyName parent =
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]");
+ * AutoProtectionPolicyBinding autoProtectionPolicyBinding =
+ * AutoProtectionPolicyBinding.newBuilder().build();
+ * String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414";
+ * AutoProtectionPolicyBinding response =
+ * backupDRClient
+ * .createAutoProtectionPolicyBindingAsync(
+ * parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this binding will be created. Format:
+ * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+ * @param autoProtectionPolicyBinding Required. The AutoProtectionPolicyBinding resource to
+ * create.
+ * @param autoProtectionPolicyBindingId Required. The ID to use for the binding. This will become
+ * the final component of the binding's resource name.
+ * This value must start with a lowercase letter followed by up to 62 lowercase letters,
+ * numbers, or hyphens, and cannot end with a hyphen.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ createAutoProtectionPolicyBindingAsync(
+ @Nullable AutoProtectionPolicyName parent,
+ AutoProtectionPolicyBinding autoProtectionPolicyBinding,
+ String autoProtectionPolicyBindingId) {
+ CreateAutoProtectionPolicyBindingRequest request =
+ CreateAutoProtectionPolicyBindingRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setAutoProtectionPolicyBinding(autoProtectionPolicyBinding)
+ .setAutoProtectionPolicyBindingId(autoProtectionPolicyBindingId)
+ .build();
+ return createAutoProtectionPolicyBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new AutoProtectionPolicyBinding 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 =
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString();
+ * AutoProtectionPolicyBinding autoProtectionPolicyBinding =
+ * AutoProtectionPolicyBinding.newBuilder().build();
+ * String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414";
+ * AutoProtectionPolicyBinding response =
+ * backupDRClient
+ * .createAutoProtectionPolicyBindingAsync(
+ * parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this binding will be created. Format:
+ * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+ * @param autoProtectionPolicyBinding Required. The AutoProtectionPolicyBinding resource to
+ * create.
+ * @param autoProtectionPolicyBindingId Required. The ID to use for the binding. This will become
+ * the final component of the binding's resource name.
+ * This value must start with a lowercase letter followed by up to 62 lowercase letters,
+ * numbers, or hyphens, and cannot end with a hyphen.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ createAutoProtectionPolicyBindingAsync(
+ String parent,
+ AutoProtectionPolicyBinding autoProtectionPolicyBinding,
+ String autoProtectionPolicyBindingId) {
+ CreateAutoProtectionPolicyBindingRequest request =
+ CreateAutoProtectionPolicyBindingRequest.newBuilder()
+ .setParent(parent)
+ .setAutoProtectionPolicyBinding(autoProtectionPolicyBinding)
+ .setAutoProtectionPolicyBindingId(autoProtectionPolicyBindingId)
+ .build();
+ return createAutoProtectionPolicyBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new AutoProtectionPolicyBinding 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()) {
+ * CreateAutoProtectionPolicyBindingRequest request =
+ * CreateAutoProtectionPolicyBindingRequest.newBuilder()
+ * .setParent(
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString())
+ * .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414")
+ * .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * AutoProtectionPolicyBinding response =
+ * backupDRClient.createAutoProtectionPolicyBindingAsync(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
+ createAutoProtectionPolicyBindingAsync(CreateAutoProtectionPolicyBindingRequest request) {
+ return createAutoProtectionPolicyBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new AutoProtectionPolicyBinding 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()) {
+ * CreateAutoProtectionPolicyBindingRequest request =
+ * CreateAutoProtectionPolicyBindingRequest.newBuilder()
+ * .setParent(
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString())
+ * .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414")
+ * .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.createAutoProtectionPolicyBindingOperationCallable().futureCall(request);
+ * // Do something.
+ * AutoProtectionPolicyBinding response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata>
+ createAutoProtectionPolicyBindingOperationCallable() {
+ return stub.createAutoProtectionPolicyBindingOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new AutoProtectionPolicyBinding 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()) {
+ * CreateAutoProtectionPolicyBindingRequest request =
+ * CreateAutoProtectionPolicyBindingRequest.newBuilder()
+ * .setParent(
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString())
+ * .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414")
+ * .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.createAutoProtectionPolicyBindingCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createAutoProtectionPolicyBindingCallable() {
+ return stub.createAutoProtectionPolicyBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the auto protection policy binding read from the CCFE tables.
+ *
+ * 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()) {
+ * AutoProtectionPolicyBindingName name =
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]");
+ * AutoProtectionPolicyBinding response = backupDRClient.getAutoProtectionPolicyBinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the binding to retrieve. Format:
+ * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutoProtectionPolicyBinding getAutoProtectionPolicyBinding(
+ @Nullable AutoProtectionPolicyBindingName name) {
+ GetAutoProtectionPolicyBindingRequest request =
+ GetAutoProtectionPolicyBindingRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getAutoProtectionPolicyBinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the auto protection policy binding read from the CCFE tables.
+ *
+ * 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 =
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString();
+ * AutoProtectionPolicyBinding response = backupDRClient.getAutoProtectionPolicyBinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the binding to retrieve. Format:
+ * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutoProtectionPolicyBinding getAutoProtectionPolicyBinding(String name) {
+ GetAutoProtectionPolicyBindingRequest request =
+ GetAutoProtectionPolicyBindingRequest.newBuilder().setName(name).build();
+ return getAutoProtectionPolicyBinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the auto protection policy binding read from the CCFE tables.
+ *
+ * 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()) {
+ * GetAutoProtectionPolicyBindingRequest request =
+ * GetAutoProtectionPolicyBindingRequest.newBuilder()
+ * .setName(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
+ * .build();
+ * AutoProtectionPolicyBinding response = backupDRClient.getAutoProtectionPolicyBinding(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 AutoProtectionPolicyBinding getAutoProtectionPolicyBinding(
+ GetAutoProtectionPolicyBindingRequest request) {
+ return getAutoProtectionPolicyBindingCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the auto protection policy binding read from the CCFE tables.
+ *
+ * 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()) {
+ * GetAutoProtectionPolicyBindingRequest request =
+ * GetAutoProtectionPolicyBindingRequest.newBuilder()
+ * .setName(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.getAutoProtectionPolicyBindingCallable().futureCall(request);
+ * // Do something.
+ * AutoProtectionPolicyBinding response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getAutoProtectionPolicyBindingCallable() {
+ return stub.getAutoProtectionPolicyBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the auto protection policy bindings read from the CCFE tables.
+ *
+ * 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()) {
+ * AutoProtectionPolicyName parent =
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]");
+ * for (AutoProtectionPolicyBinding element :
+ * backupDRClient.listAutoProtectionPolicyBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve the list of policies.
+ * Format: projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutoProtectionPolicyBindingsPagedResponse listAutoProtectionPolicyBindings(
+ @Nullable AutoProtectionPolicyName parent) {
+ ListAutoProtectionPolicyBindingsRequest request =
+ ListAutoProtectionPolicyBindingsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAutoProtectionPolicyBindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the auto protection policy bindings read from the CCFE tables.
+ *
+ * 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 =
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString();
+ * for (AutoProtectionPolicyBinding element :
+ * backupDRClient.listAutoProtectionPolicyBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve the list of policies.
+ * Format: projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutoProtectionPolicyBindingsPagedResponse listAutoProtectionPolicyBindings(
+ String parent) {
+ ListAutoProtectionPolicyBindingsRequest request =
+ ListAutoProtectionPolicyBindingsRequest.newBuilder().setParent(parent).build();
+ return listAutoProtectionPolicyBindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the auto protection policy bindings read from the CCFE tables.
+ *
+ * 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()) {
+ * ListAutoProtectionPolicyBindingsRequest request =
+ * ListAutoProtectionPolicyBindingsRequest.newBuilder()
+ * .setParent(
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (AutoProtectionPolicyBinding element :
+ * backupDRClient.listAutoProtectionPolicyBindings(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 ListAutoProtectionPolicyBindingsPagedResponse listAutoProtectionPolicyBindings(
+ ListAutoProtectionPolicyBindingsRequest request) {
+ return listAutoProtectionPolicyBindingsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the auto protection policy bindings read from the CCFE tables.
+ *
+ * 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()) {
+ * ListAutoProtectionPolicyBindingsRequest request =
+ * ListAutoProtectionPolicyBindingsRequest.newBuilder()
+ * .setParent(
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.listAutoProtectionPolicyBindingsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (AutoProtectionPolicyBinding element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsPagedResponse>
+ listAutoProtectionPolicyBindingsPagedCallable() {
+ return stub.listAutoProtectionPolicyBindingsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the auto protection policy bindings read from the CCFE tables.
+ *
+ * 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()) {
+ * ListAutoProtectionPolicyBindingsRequest request =
+ * ListAutoProtectionPolicyBindingsRequest.newBuilder()
+ * .setParent(
+ * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListAutoProtectionPolicyBindingsResponse response =
+ * backupDRClient.listAutoProtectionPolicyBindingsCallable().call(request);
+ * for (AutoProtectionPolicyBinding element : response.getAutoProtectionPolicyBindingsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse>
+ listAutoProtectionPolicyBindingsCallable() {
+ return stub.listAutoProtectionPolicyBindingsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AppliedAutoProtectionPolicies 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 (AppliedAutoProtectionPolicy element :
+ * backupDRClient.listAppliedAutoProtectionPolicies(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve the list of applied
+ * policies. Format: projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAppliedAutoProtectionPoliciesPagedResponse listAppliedAutoProtectionPolicies(
+ @Nullable LocationName parent) {
+ ListAppliedAutoProtectionPoliciesRequest request =
+ ListAppliedAutoProtectionPoliciesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAppliedAutoProtectionPolicies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AppliedAutoProtectionPolicies 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 (AppliedAutoProtectionPolicy element :
+ * backupDRClient.listAppliedAutoProtectionPolicies(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve the list of applied
+ * policies. Format: projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAppliedAutoProtectionPoliciesPagedResponse listAppliedAutoProtectionPolicies(
+ String parent) {
+ ListAppliedAutoProtectionPoliciesRequest request =
+ ListAppliedAutoProtectionPoliciesRequest.newBuilder().setParent(parent).build();
+ return listAppliedAutoProtectionPolicies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AppliedAutoProtectionPolicies 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()) {
+ * ListAppliedAutoProtectionPoliciesRequest request =
+ * ListAppliedAutoProtectionPoliciesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (AppliedAutoProtectionPolicy element :
+ * backupDRClient.listAppliedAutoProtectionPolicies(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 ListAppliedAutoProtectionPoliciesPagedResponse listAppliedAutoProtectionPolicies(
+ ListAppliedAutoProtectionPoliciesRequest request) {
+ return listAppliedAutoProtectionPoliciesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AppliedAutoProtectionPolicies 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()) {
+ * ListAppliedAutoProtectionPoliciesRequest request =
+ * ListAppliedAutoProtectionPoliciesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.listAppliedAutoProtectionPoliciesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (AppliedAutoProtectionPolicy element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesPagedResponse>
+ listAppliedAutoProtectionPoliciesPagedCallable() {
+ return stub.listAppliedAutoProtectionPoliciesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AppliedAutoProtectionPolicies 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()) {
+ * ListAppliedAutoProtectionPoliciesRequest request =
+ * ListAppliedAutoProtectionPoliciesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListAppliedAutoProtectionPoliciesResponse response =
+ * backupDRClient.listAppliedAutoProtectionPoliciesCallable().call(request);
+ * for (AppliedAutoProtectionPolicy element :
+ * response.getAppliedAutoProtectionPoliciesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse>
+ listAppliedAutoProtectionPoliciesCallable() {
+ return stub.listAppliedAutoProtectionPoliciesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding
+ *
+ * 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()) {
+ * AutoProtectionPolicyBindingName name =
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]");
+ * AutoProtectionPolicyBinding response =
+ * backupDRClient.initiateDeleteAutoProtectionPolicyBindingAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the binding to delete. Format:
+ * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ initiateDeleteAutoProtectionPolicyBindingAsync(
+ @Nullable AutoProtectionPolicyBindingName name) {
+ InitiateDeleteAutoProtectionPolicyBindingRequest request =
+ InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return initiateDeleteAutoProtectionPolicyBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding
+ *
+ * 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 =
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString();
+ * AutoProtectionPolicyBinding response =
+ * backupDRClient.initiateDeleteAutoProtectionPolicyBindingAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the binding to delete. Format:
+ * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ initiateDeleteAutoProtectionPolicyBindingAsync(String name) {
+ InitiateDeleteAutoProtectionPolicyBindingRequest request =
+ InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder().setName(name).build();
+ return initiateDeleteAutoProtectionPolicyBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding
+ *
+ * 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()) {
+ * InitiateDeleteAutoProtectionPolicyBindingRequest request =
+ * InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder()
+ * .setName(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
+ * .setEtag("etag3123477")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * AutoProtectionPolicyBinding response =
+ * backupDRClient.initiateDeleteAutoProtectionPolicyBindingAsync(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
+ initiateDeleteAutoProtectionPolicyBindingAsync(
+ InitiateDeleteAutoProtectionPolicyBindingRequest request) {
+ return initiateDeleteAutoProtectionPolicyBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding
+ *
+ * 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()) {
+ * InitiateDeleteAutoProtectionPolicyBindingRequest request =
+ * InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder()
+ * .setName(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
+ * .setEtag("etag3123477")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient
+ * .initiateDeleteAutoProtectionPolicyBindingOperationCallable()
+ * .futureCall(request);
+ * // Do something.
+ * AutoProtectionPolicyBinding response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ InitiateDeleteAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ initiateDeleteAutoProtectionPolicyBindingOperationCallable() {
+ return stub.initiateDeleteAutoProtectionPolicyBindingOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding
+ *
+ * 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()) {
+ * InitiateDeleteAutoProtectionPolicyBindingRequest request =
+ * InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder()
+ * .setName(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
+ * .setEtag("etag3123477")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.initiateDeleteAutoProtectionPolicyBindingCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ initiateDeleteAutoProtectionPolicyBindingCallable() {
+ return stub.initiateDeleteAutoProtectionPolicyBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.
+ *
+ * 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()) {
+ * AutoProtectionPolicyBindingName parent =
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]");
+ * for (BindingMatchingResource element :
+ * backupDRClient.listBindingMatchingResources(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project, location, auto protection policy and binding for which to
+ * retrieve `BindingMatchingResources` information. Format:
+ * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`.
+ * In Google Cloud Backup and DR, locations map to Google Cloud regions, for example
+ * **us-central1**.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBindingMatchingResourcesPagedResponse listBindingMatchingResources(
+ @Nullable AutoProtectionPolicyBindingName parent) {
+ ListBindingMatchingResourcesRequest request =
+ ListBindingMatchingResourcesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBindingMatchingResources(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.
+ *
+ * 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 =
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString();
+ * for (BindingMatchingResource element :
+ * backupDRClient.listBindingMatchingResources(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project, location, auto protection policy and binding for which to
+ * retrieve `BindingMatchingResources` information. Format:
+ * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`.
+ * In Google Cloud Backup and DR, locations map to Google Cloud regions, for example
+ * **us-central1**.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBindingMatchingResourcesPagedResponse listBindingMatchingResources(
+ String parent) {
+ ListBindingMatchingResourcesRequest request =
+ ListBindingMatchingResourcesRequest.newBuilder().setParent(parent).build();
+ return listBindingMatchingResources(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.
+ *
+ * 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()) {
+ * ListBindingMatchingResourcesRequest request =
+ * ListBindingMatchingResourcesRequest.newBuilder()
+ * .setParent(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (BindingMatchingResource element :
+ * backupDRClient.listBindingMatchingResources(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 ListBindingMatchingResourcesPagedResponse listBindingMatchingResources(
+ ListBindingMatchingResourcesRequest request) {
+ return listBindingMatchingResourcesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.
+ *
+ * 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()) {
+ * ListBindingMatchingResourcesRequest request =
+ * ListBindingMatchingResourcesRequest.newBuilder()
+ * .setParent(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.listBindingMatchingResourcesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (BindingMatchingResource element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesPagedResponse>
+ listBindingMatchingResourcesPagedCallable() {
+ return stub.listBindingMatchingResourcesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.
+ *
+ * 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()) {
+ * ListBindingMatchingResourcesRequest request =
+ * ListBindingMatchingResourcesRequest.newBuilder()
+ * .setParent(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListBindingMatchingResourcesResponse response =
+ * backupDRClient.listBindingMatchingResourcesCallable().call(request);
+ * for (BindingMatchingResource element : response.getMatchingResourcesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesResponse>
+ listBindingMatchingResourcesCallable() {
+ return stub.listBindingMatchingResourcesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * 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()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : backupDRClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * 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()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future = backupDRClient.listLocationsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Location element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listLocationsPagedCallable() {
+ return stub.listLocationsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * 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()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response = backupDRClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listLocationsCallable() {
+ return stub.listLocationsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a 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()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = backupDRClient.getLocation(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 Location getLocation(GetLocationRequest request) {
+ return getLocationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a 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()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture future = backupDRClient.getLocationCallable().futureCall(request);
+ * // Do something.
+ * Location response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getLocationCallable() {
+ return stub.getLocationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replacesany existing policy.
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ *
+ *
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()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]")
+ * .toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Policy response = backupDRClient.setIamPolicy(request);
* }
* }
*
@@ -8229,6 +10325,407 @@ protected FetchDataSourceReferencesForResourceTypeFixedSizeCollection createColl
}
}
+ public static class ListAutoProtectionPoliciesPagedResponse
+ extends AbstractPagedListResponse<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ AutoProtectionPolicy,
+ ListAutoProtectionPoliciesPage,
+ ListAutoProtectionPoliciesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ AutoProtectionPolicy>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListAutoProtectionPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListAutoProtectionPoliciesPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListAutoProtectionPoliciesPagedResponse(ListAutoProtectionPoliciesPage page) {
+ super(page, ListAutoProtectionPoliciesFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListAutoProtectionPoliciesPage
+ extends AbstractPage<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ AutoProtectionPolicy,
+ ListAutoProtectionPoliciesPage> {
+
+ private ListAutoProtectionPoliciesPage(
+ @Nullable
+ PageContext<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ AutoProtectionPolicy>
+ context,
+ @Nullable ListAutoProtectionPoliciesResponse response) {
+ super(context, response);
+ }
+
+ private static ListAutoProtectionPoliciesPage createEmptyPage() {
+ return new ListAutoProtectionPoliciesPage(null, null);
+ }
+
+ @Override
+ protected ListAutoProtectionPoliciesPage createPage(
+ @Nullable
+ PageContext<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ AutoProtectionPolicy>
+ context,
+ @Nullable ListAutoProtectionPoliciesResponse response) {
+ return new ListAutoProtectionPoliciesPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ @Nullable
+ PageContext<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ AutoProtectionPolicy>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListAutoProtectionPoliciesFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ AutoProtectionPolicy,
+ ListAutoProtectionPoliciesPage,
+ ListAutoProtectionPoliciesFixedSizeCollection> {
+
+ private ListAutoProtectionPoliciesFixedSizeCollection(
+ @Nullable List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListAutoProtectionPoliciesFixedSizeCollection createEmptyCollection() {
+ return new ListAutoProtectionPoliciesFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListAutoProtectionPoliciesFixedSizeCollection createCollection(
+ @Nullable List pages, int collectionSize) {
+ return new ListAutoProtectionPoliciesFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListAutoProtectionPolicyBindingsPagedResponse
+ extends AbstractPagedListResponse<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ AutoProtectionPolicyBinding,
+ ListAutoProtectionPolicyBindingsPage,
+ ListAutoProtectionPolicyBindingsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ AutoProtectionPolicyBinding>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListAutoProtectionPolicyBindingsPage.createEmptyPage()
+ .createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListAutoProtectionPolicyBindingsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListAutoProtectionPolicyBindingsPagedResponse(
+ ListAutoProtectionPolicyBindingsPage page) {
+ super(page, ListAutoProtectionPolicyBindingsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListAutoProtectionPolicyBindingsPage
+ extends AbstractPage<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ AutoProtectionPolicyBinding,
+ ListAutoProtectionPolicyBindingsPage> {
+
+ private ListAutoProtectionPolicyBindingsPage(
+ @Nullable
+ PageContext<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ AutoProtectionPolicyBinding>
+ context,
+ @Nullable ListAutoProtectionPolicyBindingsResponse response) {
+ super(context, response);
+ }
+
+ private static ListAutoProtectionPolicyBindingsPage createEmptyPage() {
+ return new ListAutoProtectionPolicyBindingsPage(null, null);
+ }
+
+ @Override
+ protected ListAutoProtectionPolicyBindingsPage createPage(
+ @Nullable
+ PageContext<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ AutoProtectionPolicyBinding>
+ context,
+ @Nullable ListAutoProtectionPolicyBindingsResponse response) {
+ return new ListAutoProtectionPolicyBindingsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ @Nullable
+ PageContext<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ AutoProtectionPolicyBinding>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListAutoProtectionPolicyBindingsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ AutoProtectionPolicyBinding,
+ ListAutoProtectionPolicyBindingsPage,
+ ListAutoProtectionPolicyBindingsFixedSizeCollection> {
+
+ private ListAutoProtectionPolicyBindingsFixedSizeCollection(
+ @Nullable List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListAutoProtectionPolicyBindingsFixedSizeCollection createEmptyCollection() {
+ return new ListAutoProtectionPolicyBindingsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListAutoProtectionPolicyBindingsFixedSizeCollection createCollection(
+ @Nullable List pages, int collectionSize) {
+ return new ListAutoProtectionPolicyBindingsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListAppliedAutoProtectionPoliciesPagedResponse
+ extends AbstractPagedListResponse<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ AppliedAutoProtectionPolicy,
+ ListAppliedAutoProtectionPoliciesPage,
+ ListAppliedAutoProtectionPoliciesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ AppliedAutoProtectionPolicy>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListAppliedAutoProtectionPoliciesPage.createEmptyPage()
+ .createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListAppliedAutoProtectionPoliciesPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListAppliedAutoProtectionPoliciesPagedResponse(
+ ListAppliedAutoProtectionPoliciesPage page) {
+ super(page, ListAppliedAutoProtectionPoliciesFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListAppliedAutoProtectionPoliciesPage
+ extends AbstractPage<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ AppliedAutoProtectionPolicy,
+ ListAppliedAutoProtectionPoliciesPage> {
+
+ private ListAppliedAutoProtectionPoliciesPage(
+ @Nullable
+ PageContext<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ AppliedAutoProtectionPolicy>
+ context,
+ @Nullable ListAppliedAutoProtectionPoliciesResponse response) {
+ super(context, response);
+ }
+
+ private static ListAppliedAutoProtectionPoliciesPage createEmptyPage() {
+ return new ListAppliedAutoProtectionPoliciesPage(null, null);
+ }
+
+ @Override
+ protected ListAppliedAutoProtectionPoliciesPage createPage(
+ @Nullable
+ PageContext<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ AppliedAutoProtectionPolicy>
+ context,
+ @Nullable ListAppliedAutoProtectionPoliciesResponse response) {
+ return new ListAppliedAutoProtectionPoliciesPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ @Nullable
+ PageContext<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ AppliedAutoProtectionPolicy>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListAppliedAutoProtectionPoliciesFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ AppliedAutoProtectionPolicy,
+ ListAppliedAutoProtectionPoliciesPage,
+ ListAppliedAutoProtectionPoliciesFixedSizeCollection> {
+
+ private ListAppliedAutoProtectionPoliciesFixedSizeCollection(
+ @Nullable List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListAppliedAutoProtectionPoliciesFixedSizeCollection createEmptyCollection() {
+ return new ListAppliedAutoProtectionPoliciesFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListAppliedAutoProtectionPoliciesFixedSizeCollection createCollection(
+ @Nullable List pages, int collectionSize) {
+ return new ListAppliedAutoProtectionPoliciesFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListBindingMatchingResourcesPagedResponse
+ extends AbstractPagedListResponse<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ BindingMatchingResource,
+ ListBindingMatchingResourcesPage,
+ ListBindingMatchingResourcesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ BindingMatchingResource>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListBindingMatchingResourcesPage.createEmptyPage()
+ .createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListBindingMatchingResourcesPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListBindingMatchingResourcesPagedResponse(ListBindingMatchingResourcesPage page) {
+ super(page, ListBindingMatchingResourcesFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListBindingMatchingResourcesPage
+ extends AbstractPage<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ BindingMatchingResource,
+ ListBindingMatchingResourcesPage> {
+
+ private ListBindingMatchingResourcesPage(
+ @Nullable
+ PageContext<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ BindingMatchingResource>
+ context,
+ @Nullable ListBindingMatchingResourcesResponse response) {
+ super(context, response);
+ }
+
+ private static ListBindingMatchingResourcesPage createEmptyPage() {
+ return new ListBindingMatchingResourcesPage(null, null);
+ }
+
+ @Override
+ protected ListBindingMatchingResourcesPage createPage(
+ @Nullable
+ PageContext<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ BindingMatchingResource>
+ context,
+ @Nullable ListBindingMatchingResourcesResponse response) {
+ return new ListBindingMatchingResourcesPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ @Nullable
+ PageContext<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ BindingMatchingResource>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListBindingMatchingResourcesFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ BindingMatchingResource,
+ ListBindingMatchingResourcesPage,
+ ListBindingMatchingResourcesFixedSizeCollection> {
+
+ private ListBindingMatchingResourcesFixedSizeCollection(
+ @Nullable List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListBindingMatchingResourcesFixedSizeCollection createEmptyCollection() {
+ return new ListBindingMatchingResourcesFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListBindingMatchingResourcesFixedSizeCollection createCollection(
+ @Nullable List pages, int collectionSize) {
+ return new ListBindingMatchingResourcesFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
public static class ListLocationsPagedResponse
extends AbstractPagedListResponse<
ListLocationsRequest,
diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java
index 2c4430fd8244..1f6ea8c45fd7 100644
--- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java
+++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java
@@ -20,11 +20,15 @@
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAppliedAutoProtectionPoliciesPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPoliciesPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPolicyBindingsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanRevisionsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListBindingMatchingResourcesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse;
@@ -488,6 +492,129 @@ public UnaryCallSettings initializeServiceS
return ((BackupDRStubSettings) getStubSettings()).initializeServiceOperationSettings();
}
+ /** Returns the object with the settings used for calls to createAutoProtectionPolicy. */
+ public UnaryCallSettings
+ createAutoProtectionPolicySettings() {
+ return ((BackupDRStubSettings) getStubSettings()).createAutoProtectionPolicySettings();
+ }
+
+ /** Returns the object with the settings used for calls to createAutoProtectionPolicy. */
+ public OperationCallSettings<
+ CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ createAutoProtectionPolicyOperationSettings() {
+ return ((BackupDRStubSettings) getStubSettings()).createAutoProtectionPolicyOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listAutoProtectionPolicies. */
+ public PagedCallSettings<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ ListAutoProtectionPoliciesPagedResponse>
+ listAutoProtectionPoliciesSettings() {
+ return ((BackupDRStubSettings) getStubSettings()).listAutoProtectionPoliciesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getAutoProtectionPolicy. */
+ public UnaryCallSettings
+ getAutoProtectionPolicySettings() {
+ return ((BackupDRStubSettings) getStubSettings()).getAutoProtectionPolicySettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateAutoProtectionPolicy. */
+ public UnaryCallSettings
+ updateAutoProtectionPolicySettings() {
+ return ((BackupDRStubSettings) getStubSettings()).updateAutoProtectionPolicySettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateAutoProtectionPolicy. */
+ public OperationCallSettings<
+ UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ updateAutoProtectionPolicyOperationSettings() {
+ return ((BackupDRStubSettings) getStubSettings()).updateAutoProtectionPolicyOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteAutoProtectionPolicy. */
+ public UnaryCallSettings
+ deleteAutoProtectionPolicySettings() {
+ return ((BackupDRStubSettings) getStubSettings()).deleteAutoProtectionPolicySettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteAutoProtectionPolicy. */
+ public OperationCallSettings
+ deleteAutoProtectionPolicyOperationSettings() {
+ return ((BackupDRStubSettings) getStubSettings()).deleteAutoProtectionPolicyOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createAutoProtectionPolicyBinding. */
+ public UnaryCallSettings
+ createAutoProtectionPolicyBindingSettings() {
+ return ((BackupDRStubSettings) getStubSettings()).createAutoProtectionPolicyBindingSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createAutoProtectionPolicyBinding. */
+ public OperationCallSettings<
+ CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata>
+ createAutoProtectionPolicyBindingOperationSettings() {
+ return ((BackupDRStubSettings) getStubSettings())
+ .createAutoProtectionPolicyBindingOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getAutoProtectionPolicyBinding. */
+ public UnaryCallSettings
+ getAutoProtectionPolicyBindingSettings() {
+ return ((BackupDRStubSettings) getStubSettings()).getAutoProtectionPolicyBindingSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listAutoProtectionPolicyBindings. */
+ public PagedCallSettings<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ ListAutoProtectionPolicyBindingsPagedResponse>
+ listAutoProtectionPolicyBindingsSettings() {
+ return ((BackupDRStubSettings) getStubSettings()).listAutoProtectionPolicyBindingsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listAppliedAutoProtectionPolicies. */
+ public PagedCallSettings<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ ListAppliedAutoProtectionPoliciesPagedResponse>
+ listAppliedAutoProtectionPoliciesSettings() {
+ return ((BackupDRStubSettings) getStubSettings()).listAppliedAutoProtectionPoliciesSettings();
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * initiateDeleteAutoProtectionPolicyBinding.
+ */
+ public UnaryCallSettings
+ initiateDeleteAutoProtectionPolicyBindingSettings() {
+ return ((BackupDRStubSettings) getStubSettings())
+ .initiateDeleteAutoProtectionPolicyBindingSettings();
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * initiateDeleteAutoProtectionPolicyBinding.
+ */
+ public OperationCallSettings<
+ InitiateDeleteAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ initiateDeleteAutoProtectionPolicyBindingOperationSettings() {
+ return ((BackupDRStubSettings) getStubSettings())
+ .initiateDeleteAutoProtectionPolicyBindingOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listBindingMatchingResources. */
+ public PagedCallSettings<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ ListBindingMatchingResourcesPagedResponse>
+ listBindingMatchingResourcesSettings() {
+ return ((BackupDRStubSettings) getStubSettings()).listBindingMatchingResourcesSettings();
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -983,6 +1110,130 @@ public UnaryCallSettings.Builder triggerBackupS
return getStubSettingsBuilder().initializeServiceOperationSettings();
}
+ /** Returns the builder for the settings used for calls to createAutoProtectionPolicy. */
+ public UnaryCallSettings.Builder
+ createAutoProtectionPolicySettings() {
+ return getStubSettingsBuilder().createAutoProtectionPolicySettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createAutoProtectionPolicy. */
+ public OperationCallSettings.Builder<
+ CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ createAutoProtectionPolicyOperationSettings() {
+ return getStubSettingsBuilder().createAutoProtectionPolicyOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listAutoProtectionPolicies. */
+ public PagedCallSettings.Builder<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ ListAutoProtectionPoliciesPagedResponse>
+ listAutoProtectionPoliciesSettings() {
+ return getStubSettingsBuilder().listAutoProtectionPoliciesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getAutoProtectionPolicy. */
+ public UnaryCallSettings.Builder
+ getAutoProtectionPolicySettings() {
+ return getStubSettingsBuilder().getAutoProtectionPolicySettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateAutoProtectionPolicy. */
+ public UnaryCallSettings.Builder
+ updateAutoProtectionPolicySettings() {
+ return getStubSettingsBuilder().updateAutoProtectionPolicySettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateAutoProtectionPolicy. */
+ public OperationCallSettings.Builder<
+ UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ updateAutoProtectionPolicyOperationSettings() {
+ return getStubSettingsBuilder().updateAutoProtectionPolicyOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteAutoProtectionPolicy. */
+ public UnaryCallSettings.Builder
+ deleteAutoProtectionPolicySettings() {
+ return getStubSettingsBuilder().deleteAutoProtectionPolicySettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteAutoProtectionPolicy. */
+ public OperationCallSettings.Builder<
+ DeleteAutoProtectionPolicyRequest, Empty, OperationMetadata>
+ deleteAutoProtectionPolicyOperationSettings() {
+ return getStubSettingsBuilder().deleteAutoProtectionPolicyOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createAutoProtectionPolicyBinding. */
+ public UnaryCallSettings.Builder
+ createAutoProtectionPolicyBindingSettings() {
+ return getStubSettingsBuilder().createAutoProtectionPolicyBindingSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createAutoProtectionPolicyBinding. */
+ public OperationCallSettings.Builder<
+ CreateAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ createAutoProtectionPolicyBindingOperationSettings() {
+ return getStubSettingsBuilder().createAutoProtectionPolicyBindingOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getAutoProtectionPolicyBinding. */
+ public UnaryCallSettings.Builder<
+ GetAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding>
+ getAutoProtectionPolicyBindingSettings() {
+ return getStubSettingsBuilder().getAutoProtectionPolicyBindingSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listAutoProtectionPolicyBindings. */
+ public PagedCallSettings.Builder<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ ListAutoProtectionPolicyBindingsPagedResponse>
+ listAutoProtectionPolicyBindingsSettings() {
+ return getStubSettingsBuilder().listAutoProtectionPolicyBindingsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listAppliedAutoProtectionPolicies. */
+ public PagedCallSettings.Builder<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ ListAppliedAutoProtectionPoliciesPagedResponse>
+ listAppliedAutoProtectionPoliciesSettings() {
+ return getStubSettingsBuilder().listAppliedAutoProtectionPoliciesSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * initiateDeleteAutoProtectionPolicyBinding.
+ */
+ public UnaryCallSettings.Builder
+ initiateDeleteAutoProtectionPolicyBindingSettings() {
+ return getStubSettingsBuilder().initiateDeleteAutoProtectionPolicyBindingSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * initiateDeleteAutoProtectionPolicyBinding.
+ */
+ public OperationCallSettings.Builder<
+ InitiateDeleteAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ initiateDeleteAutoProtectionPolicyBindingOperationSettings() {
+ return getStubSettingsBuilder().initiateDeleteAutoProtectionPolicyBindingOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listBindingMatchingResources. */
+ public PagedCallSettings.Builder<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ ListBindingMatchingResourcesPagedResponse>
+ listBindingMatchingResourcesSettings() {
+ return getStubSettingsBuilder().listBindingMatchingResourcesSettings();
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json
index 1376fbdac135..c2ba40f655b1 100644
--- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json
+++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json
@@ -10,6 +10,12 @@
"grpc": {
"libraryClient": "BackupDRClient",
"rpcs": {
+ "CreateAutoProtectionPolicy": {
+ "methods": ["createAutoProtectionPolicyAsync", "createAutoProtectionPolicyAsync", "createAutoProtectionPolicyAsync", "createAutoProtectionPolicyOperationCallable", "createAutoProtectionPolicyCallable"]
+ },
+ "CreateAutoProtectionPolicyBinding": {
+ "methods": ["createAutoProtectionPolicyBindingAsync", "createAutoProtectionPolicyBindingAsync", "createAutoProtectionPolicyBindingAsync", "createAutoProtectionPolicyBindingOperationCallable", "createAutoProtectionPolicyBindingCallable"]
+ },
"CreateBackupPlan": {
"methods": ["createBackupPlanAsync", "createBackupPlanAsync", "createBackupPlanAsync", "createBackupPlanOperationCallable", "createBackupPlanCallable"]
},
@@ -22,6 +28,9 @@
"CreateManagementServer": {
"methods": ["createManagementServerAsync", "createManagementServerAsync", "createManagementServerAsync", "createManagementServerOperationCallable", "createManagementServerCallable"]
},
+ "DeleteAutoProtectionPolicy": {
+ "methods": ["deleteAutoProtectionPolicyAsync", "deleteAutoProtectionPolicyAsync", "deleteAutoProtectionPolicyAsync", "deleteAutoProtectionPolicyOperationCallable", "deleteAutoProtectionPolicyCallable"]
+ },
"DeleteBackup": {
"methods": ["deleteBackupAsync", "deleteBackupAsync", "deleteBackupAsync", "deleteBackupOperationCallable", "deleteBackupCallable"]
},
@@ -49,6 +58,12 @@
"FetchUsableBackupVaults": {
"methods": ["fetchUsableBackupVaults", "fetchUsableBackupVaults", "fetchUsableBackupVaults", "fetchUsableBackupVaultsPagedCallable", "fetchUsableBackupVaultsCallable"]
},
+ "GetAutoProtectionPolicy": {
+ "methods": ["getAutoProtectionPolicy", "getAutoProtectionPolicy", "getAutoProtectionPolicy", "getAutoProtectionPolicyCallable"]
+ },
+ "GetAutoProtectionPolicyBinding": {
+ "methods": ["getAutoProtectionPolicyBinding", "getAutoProtectionPolicyBinding", "getAutoProtectionPolicyBinding", "getAutoProtectionPolicyBindingCallable"]
+ },
"GetBackup": {
"methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"]
},
@@ -82,6 +97,18 @@
"InitializeService": {
"methods": ["initializeServiceAsync", "initializeServiceOperationCallable", "initializeServiceCallable"]
},
+ "InitiateDeleteAutoProtectionPolicyBinding": {
+ "methods": ["initiateDeleteAutoProtectionPolicyBindingAsync", "initiateDeleteAutoProtectionPolicyBindingAsync", "initiateDeleteAutoProtectionPolicyBindingAsync", "initiateDeleteAutoProtectionPolicyBindingOperationCallable", "initiateDeleteAutoProtectionPolicyBindingCallable"]
+ },
+ "ListAppliedAutoProtectionPolicies": {
+ "methods": ["listAppliedAutoProtectionPolicies", "listAppliedAutoProtectionPolicies", "listAppliedAutoProtectionPolicies", "listAppliedAutoProtectionPoliciesPagedCallable", "listAppliedAutoProtectionPoliciesCallable"]
+ },
+ "ListAutoProtectionPolicies": {
+ "methods": ["listAutoProtectionPolicies", "listAutoProtectionPolicies", "listAutoProtectionPolicies", "listAutoProtectionPoliciesPagedCallable", "listAutoProtectionPoliciesCallable"]
+ },
+ "ListAutoProtectionPolicyBindings": {
+ "methods": ["listAutoProtectionPolicyBindings", "listAutoProtectionPolicyBindings", "listAutoProtectionPolicyBindings", "listAutoProtectionPolicyBindingsPagedCallable", "listAutoProtectionPolicyBindingsCallable"]
+ },
"ListBackupPlanAssociations": {
"methods": ["listBackupPlanAssociations", "listBackupPlanAssociations", "listBackupPlanAssociations", "listBackupPlanAssociationsPagedCallable", "listBackupPlanAssociationsCallable"]
},
@@ -97,6 +124,9 @@
"ListBackups": {
"methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"]
},
+ "ListBindingMatchingResources": {
+ "methods": ["listBindingMatchingResources", "listBindingMatchingResources", "listBindingMatchingResources", "listBindingMatchingResourcesPagedCallable", "listBindingMatchingResourcesCallable"]
+ },
"ListDataSourceReferences": {
"methods": ["listDataSourceReferences", "listDataSourceReferences", "listDataSourceReferences", "listDataSourceReferencesPagedCallable", "listDataSourceReferencesCallable"]
},
@@ -121,6 +151,9 @@
"TriggerBackup": {
"methods": ["triggerBackupAsync", "triggerBackupAsync", "triggerBackupAsync", "triggerBackupOperationCallable", "triggerBackupCallable"]
},
+ "UpdateAutoProtectionPolicy": {
+ "methods": ["updateAutoProtectionPolicyAsync", "updateAutoProtectionPolicyAsync", "updateAutoProtectionPolicyOperationCallable", "updateAutoProtectionPolicyCallable"]
+ },
"UpdateBackup": {
"methods": ["updateBackupAsync", "updateBackupAsync", "updateBackupOperationCallable", "updateBackupCallable"]
},
diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java
index c671730d3330..d76b7883794b 100644
--- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java
+++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java
@@ -20,11 +20,15 @@
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAppliedAutoProtectionPoliciesPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPoliciesPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPolicyBindingsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanRevisionsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListBindingMatchingResourcesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse;
@@ -33,17 +37,22 @@
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.backupdr.v1.AutoProtectionPolicy;
+import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding;
import com.google.cloud.backupdr.v1.Backup;
import com.google.cloud.backupdr.v1.BackupPlan;
import com.google.cloud.backupdr.v1.BackupPlanAssociation;
import com.google.cloud.backupdr.v1.BackupPlanRevision;
import com.google.cloud.backupdr.v1.BackupVault;
+import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest;
+import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.CreateBackupPlanRequest;
import com.google.cloud.backupdr.v1.CreateBackupVaultRequest;
import com.google.cloud.backupdr.v1.CreateManagementServerRequest;
import com.google.cloud.backupdr.v1.DataSource;
import com.google.cloud.backupdr.v1.DataSourceReference;
+import com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.DeleteBackupPlanRequest;
import com.google.cloud.backupdr.v1.DeleteBackupRequest;
@@ -57,6 +66,8 @@
import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse;
import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest;
import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsResponse;
+import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest;
+import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.GetBackupPlanRequest;
import com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest;
@@ -67,6 +78,13 @@
import com.google.cloud.backupdr.v1.GetManagementServerRequest;
import com.google.cloud.backupdr.v1.InitializeServiceRequest;
import com.google.cloud.backupdr.v1.InitializeServiceResponse;
+import com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest;
+import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest;
+import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse;
import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest;
import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse;
import com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest;
@@ -77,6 +95,8 @@
import com.google.cloud.backupdr.v1.ListBackupVaultsResponse;
import com.google.cloud.backupdr.v1.ListBackupsRequest;
import com.google.cloud.backupdr.v1.ListBackupsResponse;
+import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest;
+import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse;
import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest;
import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse;
import com.google.cloud.backupdr.v1.ListDataSourcesRequest;
@@ -88,6 +108,7 @@
import com.google.cloud.backupdr.v1.RestoreBackupRequest;
import com.google.cloud.backupdr.v1.RestoreBackupResponse;
import com.google.cloud.backupdr.v1.TriggerBackupRequest;
+import com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.UpdateBackupPlanRequest;
import com.google.cloud.backupdr.v1.UpdateBackupRequest;
@@ -469,6 +490,136 @@ public UnaryCallable initializeServiceCalla
throw new UnsupportedOperationException("Not implemented: initializeServiceCallable()");
}
+ public OperationCallable<
+ CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ createAutoProtectionPolicyOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createAutoProtectionPolicyOperationCallable()");
+ }
+
+ public UnaryCallable
+ createAutoProtectionPolicyCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createAutoProtectionPolicyCallable()");
+ }
+
+ public UnaryCallable
+ listAutoProtectionPoliciesPagedCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listAutoProtectionPoliciesPagedCallable()");
+ }
+
+ public UnaryCallable
+ listAutoProtectionPoliciesCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listAutoProtectionPoliciesCallable()");
+ }
+
+ public UnaryCallable
+ getAutoProtectionPolicyCallable() {
+ throw new UnsupportedOperationException("Not implemented: getAutoProtectionPolicyCallable()");
+ }
+
+ public OperationCallable<
+ UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ updateAutoProtectionPolicyOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: updateAutoProtectionPolicyOperationCallable()");
+ }
+
+ public UnaryCallable
+ updateAutoProtectionPolicyCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: updateAutoProtectionPolicyCallable()");
+ }
+
+ public OperationCallable
+ deleteAutoProtectionPolicyOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: deleteAutoProtectionPolicyOperationCallable()");
+ }
+
+ public UnaryCallable
+ deleteAutoProtectionPolicyCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: deleteAutoProtectionPolicyCallable()");
+ }
+
+ public OperationCallable<
+ CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata>
+ createAutoProtectionPolicyBindingOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createAutoProtectionPolicyBindingOperationCallable()");
+ }
+
+ public UnaryCallable
+ createAutoProtectionPolicyBindingCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createAutoProtectionPolicyBindingCallable()");
+ }
+
+ public UnaryCallable
+ getAutoProtectionPolicyBindingCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: getAutoProtectionPolicyBindingCallable()");
+ }
+
+ public UnaryCallable<
+ ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsPagedResponse>
+ listAutoProtectionPolicyBindingsPagedCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listAutoProtectionPolicyBindingsPagedCallable()");
+ }
+
+ public UnaryCallable<
+ ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse>
+ listAutoProtectionPolicyBindingsCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listAutoProtectionPolicyBindingsCallable()");
+ }
+
+ public UnaryCallable<
+ ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesPagedResponse>
+ listAppliedAutoProtectionPoliciesPagedCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listAppliedAutoProtectionPoliciesPagedCallable()");
+ }
+
+ public UnaryCallable<
+ ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse>
+ listAppliedAutoProtectionPoliciesCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listAppliedAutoProtectionPoliciesCallable()");
+ }
+
+ public OperationCallable<
+ InitiateDeleteAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ initiateDeleteAutoProtectionPolicyBindingOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: initiateDeleteAutoProtectionPolicyBindingOperationCallable()");
+ }
+
+ public UnaryCallable
+ initiateDeleteAutoProtectionPolicyBindingCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: initiateDeleteAutoProtectionPolicyBindingCallable()");
+ }
+
+ public UnaryCallable<
+ ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesPagedResponse>
+ listBindingMatchingResourcesPagedCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listBindingMatchingResourcesPagedCallable()");
+ }
+
+ public UnaryCallable
+ listBindingMatchingResourcesCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listBindingMatchingResourcesCallable()");
+ }
+
public UnaryCallable
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java
index 9bd6a0e5fb21..8e536dbbd581 100644
--- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java
+++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java
@@ -20,11 +20,15 @@
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAppliedAutoProtectionPoliciesPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPoliciesPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPolicyBindingsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanRevisionsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListBindingMatchingResourcesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse;
@@ -61,17 +65,24 @@
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy;
+import com.google.cloud.backupdr.v1.AutoProtectionPolicy;
+import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding;
import com.google.cloud.backupdr.v1.Backup;
import com.google.cloud.backupdr.v1.BackupPlan;
import com.google.cloud.backupdr.v1.BackupPlanAssociation;
import com.google.cloud.backupdr.v1.BackupPlanRevision;
import com.google.cloud.backupdr.v1.BackupVault;
+import com.google.cloud.backupdr.v1.BindingMatchingResource;
+import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest;
+import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.CreateBackupPlanRequest;
import com.google.cloud.backupdr.v1.CreateBackupVaultRequest;
import com.google.cloud.backupdr.v1.CreateManagementServerRequest;
import com.google.cloud.backupdr.v1.DataSource;
import com.google.cloud.backupdr.v1.DataSourceReference;
+import com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.DeleteBackupPlanRequest;
import com.google.cloud.backupdr.v1.DeleteBackupRequest;
@@ -85,6 +96,8 @@
import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse;
import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest;
import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsResponse;
+import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest;
+import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.GetBackupPlanRequest;
import com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest;
@@ -95,6 +108,13 @@
import com.google.cloud.backupdr.v1.GetManagementServerRequest;
import com.google.cloud.backupdr.v1.InitializeServiceRequest;
import com.google.cloud.backupdr.v1.InitializeServiceResponse;
+import com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest;
+import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest;
+import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse;
import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest;
import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse;
import com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest;
@@ -105,6 +125,8 @@
import com.google.cloud.backupdr.v1.ListBackupVaultsResponse;
import com.google.cloud.backupdr.v1.ListBackupsRequest;
import com.google.cloud.backupdr.v1.ListBackupsResponse;
+import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest;
+import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse;
import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest;
import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse;
import com.google.cloud.backupdr.v1.ListDataSourcesRequest;
@@ -116,6 +138,7 @@
import com.google.cloud.backupdr.v1.RestoreBackupRequest;
import com.google.cloud.backupdr.v1.RestoreBackupResponse;
import com.google.cloud.backupdr.v1.TriggerBackupRequest;
+import com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.UpdateBackupPlanRequest;
import com.google.cloud.backupdr.v1.UpdateBackupRequest;
@@ -350,6 +373,57 @@ public class BackupDRStubSettings extends StubSettings {
private final OperationCallSettings<
InitializeServiceRequest, InitializeServiceResponse, OperationMetadata>
initializeServiceOperationSettings;
+ private final UnaryCallSettings
+ createAutoProtectionPolicySettings;
+ private final OperationCallSettings<
+ CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ createAutoProtectionPolicyOperationSettings;
+ private final PagedCallSettings<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ ListAutoProtectionPoliciesPagedResponse>
+ listAutoProtectionPoliciesSettings;
+ private final UnaryCallSettings
+ getAutoProtectionPolicySettings;
+ private final UnaryCallSettings
+ updateAutoProtectionPolicySettings;
+ private final OperationCallSettings<
+ UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ updateAutoProtectionPolicyOperationSettings;
+ private final UnaryCallSettings
+ deleteAutoProtectionPolicySettings;
+ private final OperationCallSettings
+ deleteAutoProtectionPolicyOperationSettings;
+ private final UnaryCallSettings
+ createAutoProtectionPolicyBindingSettings;
+ private final OperationCallSettings<
+ CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata>
+ createAutoProtectionPolicyBindingOperationSettings;
+ private final UnaryCallSettings<
+ GetAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding>
+ getAutoProtectionPolicyBindingSettings;
+ private final PagedCallSettings<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ ListAutoProtectionPolicyBindingsPagedResponse>
+ listAutoProtectionPolicyBindingsSettings;
+ private final PagedCallSettings<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ ListAppliedAutoProtectionPoliciesPagedResponse>
+ listAppliedAutoProtectionPoliciesSettings;
+ private final UnaryCallSettings
+ initiateDeleteAutoProtectionPolicyBindingSettings;
+ private final OperationCallSettings<
+ InitiateDeleteAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ initiateDeleteAutoProtectionPolicyBindingOperationSettings;
+ private final PagedCallSettings<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ ListBindingMatchingResourcesPagedResponse>
+ listBindingMatchingResourcesSettings;
private final PagedCallSettings<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -859,6 +933,194 @@ public Iterable extractResources(
}
};
+ private static final PagedListDescriptor<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ AutoProtectionPolicy>
+ LIST_AUTO_PROTECTION_POLICIES_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ AutoProtectionPolicy>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListAutoProtectionPoliciesRequest injectToken(
+ ListAutoProtectionPoliciesRequest payload, String token) {
+ return ListAutoProtectionPoliciesRequest.newBuilder(payload)
+ .setPageToken(token)
+ .build();
+ }
+
+ @Override
+ public ListAutoProtectionPoliciesRequest injectPageSize(
+ ListAutoProtectionPoliciesRequest payload, int pageSize) {
+ return ListAutoProtectionPoliciesRequest.newBuilder(payload)
+ .setPageSize(pageSize)
+ .build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListAutoProtectionPoliciesRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListAutoProtectionPoliciesResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(
+ ListAutoProtectionPoliciesResponse payload) {
+ return payload.getAutoProtectionPoliciesList();
+ }
+ };
+
+ private static final PagedListDescriptor<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ AutoProtectionPolicyBinding>
+ LIST_AUTO_PROTECTION_POLICY_BINDINGS_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ AutoProtectionPolicyBinding>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListAutoProtectionPolicyBindingsRequest injectToken(
+ ListAutoProtectionPolicyBindingsRequest payload, String token) {
+ return ListAutoProtectionPolicyBindingsRequest.newBuilder(payload)
+ .setPageToken(token)
+ .build();
+ }
+
+ @Override
+ public ListAutoProtectionPolicyBindingsRequest injectPageSize(
+ ListAutoProtectionPolicyBindingsRequest payload, int pageSize) {
+ return ListAutoProtectionPolicyBindingsRequest.newBuilder(payload)
+ .setPageSize(pageSize)
+ .build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListAutoProtectionPolicyBindingsRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListAutoProtectionPolicyBindingsResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(
+ ListAutoProtectionPolicyBindingsResponse payload) {
+ return payload.getAutoProtectionPolicyBindingsList();
+ }
+ };
+
+ private static final PagedListDescriptor<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ AppliedAutoProtectionPolicy>
+ LIST_APPLIED_AUTO_PROTECTION_POLICIES_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ AppliedAutoProtectionPolicy>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListAppliedAutoProtectionPoliciesRequest injectToken(
+ ListAppliedAutoProtectionPoliciesRequest payload, String token) {
+ return ListAppliedAutoProtectionPoliciesRequest.newBuilder(payload)
+ .setPageToken(token)
+ .build();
+ }
+
+ @Override
+ public ListAppliedAutoProtectionPoliciesRequest injectPageSize(
+ ListAppliedAutoProtectionPoliciesRequest payload, int pageSize) {
+ return ListAppliedAutoProtectionPoliciesRequest.newBuilder(payload)
+ .setPageSize(pageSize)
+ .build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListAppliedAutoProtectionPoliciesRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListAppliedAutoProtectionPoliciesResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(
+ ListAppliedAutoProtectionPoliciesResponse payload) {
+ return payload.getAppliedAutoProtectionPoliciesList();
+ }
+ };
+
+ private static final PagedListDescriptor<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ BindingMatchingResource>
+ LIST_BINDING_MATCHING_RESOURCES_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ BindingMatchingResource>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListBindingMatchingResourcesRequest injectToken(
+ ListBindingMatchingResourcesRequest payload, String token) {
+ return ListBindingMatchingResourcesRequest.newBuilder(payload)
+ .setPageToken(token)
+ .build();
+ }
+
+ @Override
+ public ListBindingMatchingResourcesRequest injectPageSize(
+ ListBindingMatchingResourcesRequest payload, int pageSize) {
+ return ListBindingMatchingResourcesRequest.newBuilder(payload)
+ .setPageSize(pageSize)
+ .build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListBindingMatchingResourcesRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListBindingMatchingResourcesResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(
+ ListBindingMatchingResourcesResponse payload) {
+ return payload.getMatchingResourcesList();
+ }
+ };
+
private static final PagedListDescriptor
LIST_LOCATIONS_PAGE_STR_DESC =
new PagedListDescriptor() {
@@ -1194,6 +1456,132 @@ public ApiFuture getFuturePagedResponse(
}
};
+ private static final PagedListResponseFactory<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ ListAutoProtectionPoliciesPagedResponse>
+ LIST_AUTO_PROTECTION_POLICIES_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ ListAutoProtectionPoliciesPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable
+ callable,
+ ListAutoProtectionPoliciesRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ AutoProtectionPolicy>
+ pageContext =
+ PageContext.create(
+ callable, LIST_AUTO_PROTECTION_POLICIES_PAGE_STR_DESC, request, context);
+ return ListAutoProtectionPoliciesPagedResponse.createAsync(
+ pageContext, futureResponse);
+ }
+ };
+
+ private static final PagedListResponseFactory<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ ListAutoProtectionPolicyBindingsPagedResponse>
+ LIST_AUTO_PROTECTION_POLICY_BINDINGS_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ ListAutoProtectionPolicyBindingsPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse>
+ callable,
+ ListAutoProtectionPolicyBindingsRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ AutoProtectionPolicyBinding>
+ pageContext =
+ PageContext.create(
+ callable,
+ LIST_AUTO_PROTECTION_POLICY_BINDINGS_PAGE_STR_DESC,
+ request,
+ context);
+ return ListAutoProtectionPolicyBindingsPagedResponse.createAsync(
+ pageContext, futureResponse);
+ }
+ };
+
+ private static final PagedListResponseFactory<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ ListAppliedAutoProtectionPoliciesPagedResponse>
+ LIST_APPLIED_AUTO_PROTECTION_POLICIES_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ ListAppliedAutoProtectionPoliciesPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse>
+ callable,
+ ListAppliedAutoProtectionPoliciesRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ AppliedAutoProtectionPolicy>
+ pageContext =
+ PageContext.create(
+ callable,
+ LIST_APPLIED_AUTO_PROTECTION_POLICIES_PAGE_STR_DESC,
+ request,
+ context);
+ return ListAppliedAutoProtectionPoliciesPagedResponse.createAsync(
+ pageContext, futureResponse);
+ }
+ };
+
+ private static final PagedListResponseFactory<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ ListBindingMatchingResourcesPagedResponse>
+ LIST_BINDING_MATCHING_RESOURCES_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ ListBindingMatchingResourcesPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable<
+ ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesResponse>
+ callable,
+ ListBindingMatchingResourcesRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ BindingMatchingResource>
+ pageContext =
+ PageContext.create(
+ callable,
+ LIST_BINDING_MATCHING_RESOURCES_PAGE_STR_DESC,
+ request,
+ context);
+ return ListBindingMatchingResourcesPagedResponse.createAsync(
+ pageContext, futureResponse);
+ }
+ };
+
private static final PagedListResponseFactory<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
LIST_LOCATIONS_PAGE_STR_FACT =
@@ -1555,6 +1943,126 @@ public UnaryCallSettings initializeServiceS
return initializeServiceOperationSettings;
}
+ /** Returns the object with the settings used for calls to createAutoProtectionPolicy. */
+ public UnaryCallSettings
+ createAutoProtectionPolicySettings() {
+ return createAutoProtectionPolicySettings;
+ }
+
+ /** Returns the object with the settings used for calls to createAutoProtectionPolicy. */
+ public OperationCallSettings<
+ CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ createAutoProtectionPolicyOperationSettings() {
+ return createAutoProtectionPolicyOperationSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listAutoProtectionPolicies. */
+ public PagedCallSettings<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ ListAutoProtectionPoliciesPagedResponse>
+ listAutoProtectionPoliciesSettings() {
+ return listAutoProtectionPoliciesSettings;
+ }
+
+ /** Returns the object with the settings used for calls to getAutoProtectionPolicy. */
+ public UnaryCallSettings
+ getAutoProtectionPolicySettings() {
+ return getAutoProtectionPolicySettings;
+ }
+
+ /** Returns the object with the settings used for calls to updateAutoProtectionPolicy. */
+ public UnaryCallSettings
+ updateAutoProtectionPolicySettings() {
+ return updateAutoProtectionPolicySettings;
+ }
+
+ /** Returns the object with the settings used for calls to updateAutoProtectionPolicy. */
+ public OperationCallSettings<
+ UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ updateAutoProtectionPolicyOperationSettings() {
+ return updateAutoProtectionPolicyOperationSettings;
+ }
+
+ /** Returns the object with the settings used for calls to deleteAutoProtectionPolicy. */
+ public UnaryCallSettings
+ deleteAutoProtectionPolicySettings() {
+ return deleteAutoProtectionPolicySettings;
+ }
+
+ /** Returns the object with the settings used for calls to deleteAutoProtectionPolicy. */
+ public OperationCallSettings
+ deleteAutoProtectionPolicyOperationSettings() {
+ return deleteAutoProtectionPolicyOperationSettings;
+ }
+
+ /** Returns the object with the settings used for calls to createAutoProtectionPolicyBinding. */
+ public UnaryCallSettings
+ createAutoProtectionPolicyBindingSettings() {
+ return createAutoProtectionPolicyBindingSettings;
+ }
+
+ /** Returns the object with the settings used for calls to createAutoProtectionPolicyBinding. */
+ public OperationCallSettings<
+ CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata>
+ createAutoProtectionPolicyBindingOperationSettings() {
+ return createAutoProtectionPolicyBindingOperationSettings;
+ }
+
+ /** Returns the object with the settings used for calls to getAutoProtectionPolicyBinding. */
+ public UnaryCallSettings
+ getAutoProtectionPolicyBindingSettings() {
+ return getAutoProtectionPolicyBindingSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listAutoProtectionPolicyBindings. */
+ public PagedCallSettings<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ ListAutoProtectionPolicyBindingsPagedResponse>
+ listAutoProtectionPolicyBindingsSettings() {
+ return listAutoProtectionPolicyBindingsSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listAppliedAutoProtectionPolicies. */
+ public PagedCallSettings<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ ListAppliedAutoProtectionPoliciesPagedResponse>
+ listAppliedAutoProtectionPoliciesSettings() {
+ return listAppliedAutoProtectionPoliciesSettings;
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * initiateDeleteAutoProtectionPolicyBinding.
+ */
+ public UnaryCallSettings
+ initiateDeleteAutoProtectionPolicyBindingSettings() {
+ return initiateDeleteAutoProtectionPolicyBindingSettings;
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * initiateDeleteAutoProtectionPolicyBinding.
+ */
+ public OperationCallSettings<
+ InitiateDeleteAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ initiateDeleteAutoProtectionPolicyBindingOperationSettings() {
+ return initiateDeleteAutoProtectionPolicyBindingOperationSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listBindingMatchingResources. */
+ public PagedCallSettings<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ ListBindingMatchingResourcesPagedResponse>
+ listBindingMatchingResourcesSettings() {
+ return listBindingMatchingResourcesSettings;
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -1761,6 +2269,37 @@ protected BackupDRStubSettings(Builder settingsBuilder) throws IOException {
initializeServiceSettings = settingsBuilder.initializeServiceSettings().build();
initializeServiceOperationSettings =
settingsBuilder.initializeServiceOperationSettings().build();
+ createAutoProtectionPolicySettings =
+ settingsBuilder.createAutoProtectionPolicySettings().build();
+ createAutoProtectionPolicyOperationSettings =
+ settingsBuilder.createAutoProtectionPolicyOperationSettings().build();
+ listAutoProtectionPoliciesSettings =
+ settingsBuilder.listAutoProtectionPoliciesSettings().build();
+ getAutoProtectionPolicySettings = settingsBuilder.getAutoProtectionPolicySettings().build();
+ updateAutoProtectionPolicySettings =
+ settingsBuilder.updateAutoProtectionPolicySettings().build();
+ updateAutoProtectionPolicyOperationSettings =
+ settingsBuilder.updateAutoProtectionPolicyOperationSettings().build();
+ deleteAutoProtectionPolicySettings =
+ settingsBuilder.deleteAutoProtectionPolicySettings().build();
+ deleteAutoProtectionPolicyOperationSettings =
+ settingsBuilder.deleteAutoProtectionPolicyOperationSettings().build();
+ createAutoProtectionPolicyBindingSettings =
+ settingsBuilder.createAutoProtectionPolicyBindingSettings().build();
+ createAutoProtectionPolicyBindingOperationSettings =
+ settingsBuilder.createAutoProtectionPolicyBindingOperationSettings().build();
+ getAutoProtectionPolicyBindingSettings =
+ settingsBuilder.getAutoProtectionPolicyBindingSettings().build();
+ listAutoProtectionPolicyBindingsSettings =
+ settingsBuilder.listAutoProtectionPolicyBindingsSettings().build();
+ listAppliedAutoProtectionPoliciesSettings =
+ settingsBuilder.listAppliedAutoProtectionPoliciesSettings().build();
+ initiateDeleteAutoProtectionPolicyBindingSettings =
+ settingsBuilder.initiateDeleteAutoProtectionPolicyBindingSettings().build();
+ initiateDeleteAutoProtectionPolicyBindingOperationSettings =
+ settingsBuilder.initiateDeleteAutoProtectionPolicyBindingOperationSettings().build();
+ listBindingMatchingResourcesSettings =
+ settingsBuilder.listBindingMatchingResourcesSettings().build();
listLocationsSettings = settingsBuilder.listLocationsSettings().build();
getLocationSettings = settingsBuilder.getLocationSettings().build();
setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
@@ -1922,6 +2461,61 @@ public static class Builder extends StubSettings.Builder
initializeServiceOperationSettings;
+ private final UnaryCallSettings.Builder
+ createAutoProtectionPolicySettings;
+ private final OperationCallSettings.Builder<
+ CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ createAutoProtectionPolicyOperationSettings;
+ private final PagedCallSettings.Builder<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ ListAutoProtectionPoliciesPagedResponse>
+ listAutoProtectionPoliciesSettings;
+ private final UnaryCallSettings.Builder
+ getAutoProtectionPolicySettings;
+ private final UnaryCallSettings.Builder
+ updateAutoProtectionPolicySettings;
+ private final OperationCallSettings.Builder<
+ UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ updateAutoProtectionPolicyOperationSettings;
+ private final UnaryCallSettings.Builder
+ deleteAutoProtectionPolicySettings;
+ private final OperationCallSettings.Builder<
+ DeleteAutoProtectionPolicyRequest, Empty, OperationMetadata>
+ deleteAutoProtectionPolicyOperationSettings;
+ private final UnaryCallSettings.Builder
+ createAutoProtectionPolicyBindingSettings;
+ private final OperationCallSettings.Builder<
+ CreateAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ createAutoProtectionPolicyBindingOperationSettings;
+ private final UnaryCallSettings.Builder<
+ GetAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding>
+ getAutoProtectionPolicyBindingSettings;
+ private final PagedCallSettings.Builder<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ ListAutoProtectionPolicyBindingsPagedResponse>
+ listAutoProtectionPolicyBindingsSettings;
+ private final PagedCallSettings.Builder<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ ListAppliedAutoProtectionPoliciesPagedResponse>
+ listAppliedAutoProtectionPoliciesSettings;
+ private final UnaryCallSettings.Builder<
+ InitiateDeleteAutoProtectionPolicyBindingRequest, Operation>
+ initiateDeleteAutoProtectionPolicyBindingSettings;
+ private final OperationCallSettings.Builder<
+ InitiateDeleteAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ initiateDeleteAutoProtectionPolicyBindingOperationSettings;
+ private final PagedCallSettings.Builder<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ ListBindingMatchingResourcesPagedResponse>
+ listBindingMatchingResourcesSettings;
private final PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -2045,6 +2639,28 @@ protected Builder(@Nullable ClientContext clientContext) {
FETCH_DATA_SOURCE_REFERENCES_FOR_RESOURCE_TYPE_PAGE_STR_FACT);
initializeServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
initializeServiceOperationSettings = OperationCallSettings.newBuilder();
+ createAutoProtectionPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ createAutoProtectionPolicyOperationSettings = OperationCallSettings.newBuilder();
+ listAutoProtectionPoliciesSettings =
+ PagedCallSettings.newBuilder(LIST_AUTO_PROTECTION_POLICIES_PAGE_STR_FACT);
+ getAutoProtectionPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ updateAutoProtectionPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ updateAutoProtectionPolicyOperationSettings = OperationCallSettings.newBuilder();
+ deleteAutoProtectionPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ deleteAutoProtectionPolicyOperationSettings = OperationCallSettings.newBuilder();
+ createAutoProtectionPolicyBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ createAutoProtectionPolicyBindingOperationSettings = OperationCallSettings.newBuilder();
+ getAutoProtectionPolicyBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listAutoProtectionPolicyBindingsSettings =
+ PagedCallSettings.newBuilder(LIST_AUTO_PROTECTION_POLICY_BINDINGS_PAGE_STR_FACT);
+ listAppliedAutoProtectionPoliciesSettings =
+ PagedCallSettings.newBuilder(LIST_APPLIED_AUTO_PROTECTION_POLICIES_PAGE_STR_FACT);
+ initiateDeleteAutoProtectionPolicyBindingSettings =
+ UnaryCallSettings.newUnaryCallSettingsBuilder();
+ initiateDeleteAutoProtectionPolicyBindingOperationSettings =
+ OperationCallSettings.newBuilder();
+ listBindingMatchingResourcesSettings =
+ PagedCallSettings.newBuilder(LIST_BINDING_MATCHING_RESOURCES_PAGE_STR_FACT);
listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -2090,6 +2706,17 @@ protected Builder(@Nullable ClientContext clientContext) {
listDataSourceReferencesSettings,
fetchDataSourceReferencesForResourceTypeSettings,
initializeServiceSettings,
+ createAutoProtectionPolicySettings,
+ listAutoProtectionPoliciesSettings,
+ getAutoProtectionPolicySettings,
+ updateAutoProtectionPolicySettings,
+ deleteAutoProtectionPolicySettings,
+ createAutoProtectionPolicyBindingSettings,
+ getAutoProtectionPolicyBindingSettings,
+ listAutoProtectionPolicyBindingsSettings,
+ listAppliedAutoProtectionPoliciesSettings,
+ initiateDeleteAutoProtectionPolicyBindingSettings,
+ listBindingMatchingResourcesSettings,
listLocationsSettings,
getLocationSettings,
setIamPolicySettings,
@@ -2166,6 +2793,33 @@ protected Builder(BackupDRStubSettings settings) {
settings.fetchDataSourceReferencesForResourceTypeSettings.toBuilder();
initializeServiceSettings = settings.initializeServiceSettings.toBuilder();
initializeServiceOperationSettings = settings.initializeServiceOperationSettings.toBuilder();
+ createAutoProtectionPolicySettings = settings.createAutoProtectionPolicySettings.toBuilder();
+ createAutoProtectionPolicyOperationSettings =
+ settings.createAutoProtectionPolicyOperationSettings.toBuilder();
+ listAutoProtectionPoliciesSettings = settings.listAutoProtectionPoliciesSettings.toBuilder();
+ getAutoProtectionPolicySettings = settings.getAutoProtectionPolicySettings.toBuilder();
+ updateAutoProtectionPolicySettings = settings.updateAutoProtectionPolicySettings.toBuilder();
+ updateAutoProtectionPolicyOperationSettings =
+ settings.updateAutoProtectionPolicyOperationSettings.toBuilder();
+ deleteAutoProtectionPolicySettings = settings.deleteAutoProtectionPolicySettings.toBuilder();
+ deleteAutoProtectionPolicyOperationSettings =
+ settings.deleteAutoProtectionPolicyOperationSettings.toBuilder();
+ createAutoProtectionPolicyBindingSettings =
+ settings.createAutoProtectionPolicyBindingSettings.toBuilder();
+ createAutoProtectionPolicyBindingOperationSettings =
+ settings.createAutoProtectionPolicyBindingOperationSettings.toBuilder();
+ getAutoProtectionPolicyBindingSettings =
+ settings.getAutoProtectionPolicyBindingSettings.toBuilder();
+ listAutoProtectionPolicyBindingsSettings =
+ settings.listAutoProtectionPolicyBindingsSettings.toBuilder();
+ listAppliedAutoProtectionPoliciesSettings =
+ settings.listAppliedAutoProtectionPoliciesSettings.toBuilder();
+ initiateDeleteAutoProtectionPolicyBindingSettings =
+ settings.initiateDeleteAutoProtectionPolicyBindingSettings.toBuilder();
+ initiateDeleteAutoProtectionPolicyBindingOperationSettings =
+ settings.initiateDeleteAutoProtectionPolicyBindingOperationSettings.toBuilder();
+ listBindingMatchingResourcesSettings =
+ settings.listBindingMatchingResourcesSettings.toBuilder();
listLocationsSettings = settings.listLocationsSettings.toBuilder();
getLocationSettings = settings.getLocationSettings.toBuilder();
setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
@@ -2211,6 +2865,17 @@ protected Builder(BackupDRStubSettings settings) {
listDataSourceReferencesSettings,
fetchDataSourceReferencesForResourceTypeSettings,
initializeServiceSettings,
+ createAutoProtectionPolicySettings,
+ listAutoProtectionPoliciesSettings,
+ getAutoProtectionPolicySettings,
+ updateAutoProtectionPolicySettings,
+ deleteAutoProtectionPolicySettings,
+ createAutoProtectionPolicyBindingSettings,
+ getAutoProtectionPolicyBindingSettings,
+ listAutoProtectionPolicyBindingsSettings,
+ listAppliedAutoProtectionPoliciesSettings,
+ initiateDeleteAutoProtectionPolicyBindingSettings,
+ listBindingMatchingResourcesSettings,
listLocationsSettings,
getLocationSettings,
setIamPolicySettings,
@@ -2428,6 +3093,61 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+ builder
+ .createAutoProtectionPolicySettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+
+ builder
+ .listAutoProtectionPoliciesSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .getAutoProtectionPolicySettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .updateAutoProtectionPolicySettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+
+ builder
+ .deleteAutoProtectionPolicySettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+
+ builder
+ .createAutoProtectionPolicyBindingSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+
+ builder
+ .getAutoProtectionPolicyBindingSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .listAutoProtectionPolicyBindingsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .listAppliedAutoProtectionPoliciesSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .initiateDeleteAutoProtectionPolicyBindingSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+
+ builder
+ .listBindingMatchingResourcesSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
builder
.listLocationsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
@@ -2865,6 +3585,133 @@ private static Builder initDefaults(Builder builder) {
.setTotalTimeoutDuration(Duration.ofMillis(300000L))
.build()));
+ builder
+ .createAutoProtectionPolicyOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .
+ newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(AutoProtectionPolicy.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
+ .setPollingAlgorithm(
+ OperationTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
+ .setInitialRpcTimeoutDuration(Duration.ZERO)
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeoutDuration(Duration.ZERO)
+ .setTotalTimeoutDuration(Duration.ofMillis(300000L))
+ .build()));
+
+ builder
+ .updateAutoProtectionPolicyOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .
+ newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(AutoProtectionPolicy.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
+ .setPollingAlgorithm(
+ OperationTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
+ .setInitialRpcTimeoutDuration(Duration.ZERO)
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeoutDuration(Duration.ZERO)
+ .setTotalTimeoutDuration(Duration.ofMillis(300000L))
+ .build()));
+
+ builder
+ .deleteAutoProtectionPolicyOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .
+ newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(Empty.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
+ .setPollingAlgorithm(
+ OperationTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
+ .setInitialRpcTimeoutDuration(Duration.ZERO)
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeoutDuration(Duration.ZERO)
+ .setTotalTimeoutDuration(Duration.ofMillis(300000L))
+ .build()));
+
+ builder
+ .createAutoProtectionPolicyBindingOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .
+ newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(
+ AutoProtectionPolicyBinding.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
+ .setPollingAlgorithm(
+ OperationTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
+ .setInitialRpcTimeoutDuration(Duration.ZERO)
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeoutDuration(Duration.ZERO)
+ .setTotalTimeoutDuration(Duration.ofMillis(300000L))
+ .build()));
+
+ builder
+ .initiateDeleteAutoProtectionPolicyBindingOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .
+ newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(
+ AutoProtectionPolicyBinding.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
+ .setPollingAlgorithm(
+ OperationTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
+ .setInitialRpcTimeoutDuration(Duration.ZERO)
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeoutDuration(Duration.ZERO)
+ .setTotalTimeoutDuration(Duration.ofMillis(300000L))
+ .build()));
+
return builder;
}
@@ -3240,6 +4087,130 @@ public UnaryCallSettings.Builder triggerBackupS
return initializeServiceOperationSettings;
}
+ /** Returns the builder for the settings used for calls to createAutoProtectionPolicy. */
+ public UnaryCallSettings.Builder
+ createAutoProtectionPolicySettings() {
+ return createAutoProtectionPolicySettings;
+ }
+
+ /** Returns the builder for the settings used for calls to createAutoProtectionPolicy. */
+ public OperationCallSettings.Builder<
+ CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ createAutoProtectionPolicyOperationSettings() {
+ return createAutoProtectionPolicyOperationSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listAutoProtectionPolicies. */
+ public PagedCallSettings.Builder<
+ ListAutoProtectionPoliciesRequest,
+ ListAutoProtectionPoliciesResponse,
+ ListAutoProtectionPoliciesPagedResponse>
+ listAutoProtectionPoliciesSettings() {
+ return listAutoProtectionPoliciesSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to getAutoProtectionPolicy. */
+ public UnaryCallSettings.Builder
+ getAutoProtectionPolicySettings() {
+ return getAutoProtectionPolicySettings;
+ }
+
+ /** Returns the builder for the settings used for calls to updateAutoProtectionPolicy. */
+ public UnaryCallSettings.Builder
+ updateAutoProtectionPolicySettings() {
+ return updateAutoProtectionPolicySettings;
+ }
+
+ /** Returns the builder for the settings used for calls to updateAutoProtectionPolicy. */
+ public OperationCallSettings.Builder<
+ UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ updateAutoProtectionPolicyOperationSettings() {
+ return updateAutoProtectionPolicyOperationSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to deleteAutoProtectionPolicy. */
+ public UnaryCallSettings.Builder
+ deleteAutoProtectionPolicySettings() {
+ return deleteAutoProtectionPolicySettings;
+ }
+
+ /** Returns the builder for the settings used for calls to deleteAutoProtectionPolicy. */
+ public OperationCallSettings.Builder<
+ DeleteAutoProtectionPolicyRequest, Empty, OperationMetadata>
+ deleteAutoProtectionPolicyOperationSettings() {
+ return deleteAutoProtectionPolicyOperationSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to createAutoProtectionPolicyBinding. */
+ public UnaryCallSettings.Builder
+ createAutoProtectionPolicyBindingSettings() {
+ return createAutoProtectionPolicyBindingSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to createAutoProtectionPolicyBinding. */
+ public OperationCallSettings.Builder<
+ CreateAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ createAutoProtectionPolicyBindingOperationSettings() {
+ return createAutoProtectionPolicyBindingOperationSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to getAutoProtectionPolicyBinding. */
+ public UnaryCallSettings.Builder<
+ GetAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding>
+ getAutoProtectionPolicyBindingSettings() {
+ return getAutoProtectionPolicyBindingSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listAutoProtectionPolicyBindings. */
+ public PagedCallSettings.Builder<
+ ListAutoProtectionPolicyBindingsRequest,
+ ListAutoProtectionPolicyBindingsResponse,
+ ListAutoProtectionPolicyBindingsPagedResponse>
+ listAutoProtectionPolicyBindingsSettings() {
+ return listAutoProtectionPolicyBindingsSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listAppliedAutoProtectionPolicies. */
+ public PagedCallSettings.Builder<
+ ListAppliedAutoProtectionPoliciesRequest,
+ ListAppliedAutoProtectionPoliciesResponse,
+ ListAppliedAutoProtectionPoliciesPagedResponse>
+ listAppliedAutoProtectionPoliciesSettings() {
+ return listAppliedAutoProtectionPoliciesSettings;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * initiateDeleteAutoProtectionPolicyBinding.
+ */
+ public UnaryCallSettings.Builder
+ initiateDeleteAutoProtectionPolicyBindingSettings() {
+ return initiateDeleteAutoProtectionPolicyBindingSettings;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * initiateDeleteAutoProtectionPolicyBinding.
+ */
+ public OperationCallSettings.Builder<
+ InitiateDeleteAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ initiateDeleteAutoProtectionPolicyBindingOperationSettings() {
+ return initiateDeleteAutoProtectionPolicyBindingOperationSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listBindingMatchingResources. */
+ public PagedCallSettings.Builder<
+ ListBindingMatchingResourcesRequest,
+ ListBindingMatchingResourcesResponse,
+ ListBindingMatchingResourcesPagedResponse>
+ listBindingMatchingResourcesSettings() {
+ return listBindingMatchingResourcesSettings;
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java
index 8b7e22fe4c34..116e137aeaf5 100644
--- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java
+++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java
@@ -20,11 +20,15 @@
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAppliedAutoProtectionPoliciesPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPoliciesPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPolicyBindingsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanRevisionsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListBindingMatchingResourcesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse;
@@ -38,17 +42,22 @@
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.backupdr.v1.AutoProtectionPolicy;
+import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding;
import com.google.cloud.backupdr.v1.Backup;
import com.google.cloud.backupdr.v1.BackupPlan;
import com.google.cloud.backupdr.v1.BackupPlanAssociation;
import com.google.cloud.backupdr.v1.BackupPlanRevision;
import com.google.cloud.backupdr.v1.BackupVault;
+import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest;
+import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.CreateBackupPlanRequest;
import com.google.cloud.backupdr.v1.CreateBackupVaultRequest;
import com.google.cloud.backupdr.v1.CreateManagementServerRequest;
import com.google.cloud.backupdr.v1.DataSource;
import com.google.cloud.backupdr.v1.DataSourceReference;
+import com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.DeleteBackupPlanRequest;
import com.google.cloud.backupdr.v1.DeleteBackupRequest;
@@ -62,6 +71,8 @@
import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse;
import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest;
import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsResponse;
+import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest;
+import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.GetBackupPlanRequest;
import com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest;
@@ -72,6 +83,13 @@
import com.google.cloud.backupdr.v1.GetManagementServerRequest;
import com.google.cloud.backupdr.v1.InitializeServiceRequest;
import com.google.cloud.backupdr.v1.InitializeServiceResponse;
+import com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest;
+import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest;
+import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse;
import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest;
import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse;
import com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest;
@@ -82,6 +100,8 @@
import com.google.cloud.backupdr.v1.ListBackupVaultsResponse;
import com.google.cloud.backupdr.v1.ListBackupsRequest;
import com.google.cloud.backupdr.v1.ListBackupsResponse;
+import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest;
+import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse;
import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest;
import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse;
import com.google.cloud.backupdr.v1.ListDataSourcesRequest;
@@ -93,6 +113,7 @@
import com.google.cloud.backupdr.v1.RestoreBackupRequest;
import com.google.cloud.backupdr.v1.RestoreBackupResponse;
import com.google.cloud.backupdr.v1.TriggerBackupRequest;
+import com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.UpdateBackupPlanRequest;
import com.google.cloud.backupdr.v1.UpdateBackupRequest;
@@ -568,6 +589,156 @@ public class GrpcBackupDRStub extends BackupDRStub {
.setSampledToLocalTracing(true)
.build();
+ private static final MethodDescriptor
+ createAutoProtectionPolicyMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.backupdr.v1.BackupDR/CreateAutoProtectionPolicy")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateAutoProtectionPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor<
+ ListAutoProtectionPoliciesRequest, ListAutoProtectionPoliciesResponse>
+ listAutoProtectionPoliciesMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.backupdr.v1.BackupDR/ListAutoProtectionPolicies")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListAutoProtectionPoliciesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListAutoProtectionPoliciesResponse.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor
+ getAutoProtectionPolicyMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.backupdr.v1.BackupDR/GetAutoProtectionPolicy")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetAutoProtectionPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(AutoProtectionPolicy.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor
+ updateAutoProtectionPolicyMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.backupdr.v1.BackupDR/UpdateAutoProtectionPolicy")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(UpdateAutoProtectionPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor
+ deleteAutoProtectionPolicyMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.backupdr.v1.BackupDR/DeleteAutoProtectionPolicy")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteAutoProtectionPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor
+ createAutoProtectionPolicyBindingMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.backupdr.v1.BackupDR/CreateAutoProtectionPolicyBinding")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ CreateAutoProtectionPolicyBindingRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor<
+ GetAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding>
+ getAutoProtectionPolicyBindingMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.backupdr.v1.BackupDR/GetAutoProtectionPolicyBinding")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetAutoProtectionPolicyBindingRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(AutoProtectionPolicyBinding.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor<
+ ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse>
+ listAutoProtectionPolicyBindingsMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.backupdr.v1.BackupDR/ListAutoProtectionPolicyBindings")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ ListAutoProtectionPolicyBindingsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(
+ ListAutoProtectionPolicyBindingsResponse.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor<
+ ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse>
+ listAppliedAutoProtectionPoliciesMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.backupdr.v1.BackupDR/ListAppliedAutoProtectionPolicies")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ ListAppliedAutoProtectionPoliciesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(
+ ListAppliedAutoProtectionPoliciesResponse.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor
+ initiateDeleteAutoProtectionPolicyBindingMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.backupdr.v1.BackupDR/InitiateDeleteAutoProtectionPolicyBinding")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ InitiateDeleteAutoProtectionPolicyBindingRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor<
+ ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesResponse>
+ listBindingMatchingResourcesMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.backupdr.v1.BackupDR/ListBindingMatchingResources")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListBindingMatchingResourcesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListBindingMatchingResourcesResponse.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -750,6 +921,59 @@ public class GrpcBackupDRStub extends BackupDRStub {
private final OperationCallable<
InitializeServiceRequest, InitializeServiceResponse, OperationMetadata>
initializeServiceOperationCallable;
+ private final UnaryCallable
+ createAutoProtectionPolicyCallable;
+ private final OperationCallable<
+ CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ createAutoProtectionPolicyOperationCallable;
+ private final UnaryCallable
+ listAutoProtectionPoliciesCallable;
+ private final UnaryCallable<
+ ListAutoProtectionPoliciesRequest, ListAutoProtectionPoliciesPagedResponse>
+ listAutoProtectionPoliciesPagedCallable;
+ private final UnaryCallable
+ getAutoProtectionPolicyCallable;
+ private final UnaryCallable
+ updateAutoProtectionPolicyCallable;
+ private final OperationCallable<
+ UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ updateAutoProtectionPolicyOperationCallable;
+ private final UnaryCallable
+ deleteAutoProtectionPolicyCallable;
+ private final OperationCallable
+ deleteAutoProtectionPolicyOperationCallable;
+ private final UnaryCallable
+ createAutoProtectionPolicyBindingCallable;
+ private final OperationCallable<
+ CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata>
+ createAutoProtectionPolicyBindingOperationCallable;
+ private final UnaryCallable
+ getAutoProtectionPolicyBindingCallable;
+ private final UnaryCallable<
+ ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse>
+ listAutoProtectionPolicyBindingsCallable;
+ private final UnaryCallable<
+ ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsPagedResponse>
+ listAutoProtectionPolicyBindingsPagedCallable;
+ private final UnaryCallable<
+ ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse>
+ listAppliedAutoProtectionPoliciesCallable;
+ private final UnaryCallable<
+ ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesPagedResponse>
+ listAppliedAutoProtectionPoliciesPagedCallable;
+ private final UnaryCallable
+ initiateDeleteAutoProtectionPolicyBindingCallable;
+ private final OperationCallable<
+ InitiateDeleteAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ initiateDeleteAutoProtectionPolicyBindingOperationCallable;
+ private final UnaryCallable<
+ ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesResponse>
+ listBindingMatchingResourcesCallable;
+ private final UnaryCallable<
+ ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesPagedResponse>
+ listBindingMatchingResourcesPagedCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -1241,6 +1465,151 @@ protected GrpcBackupDRStub(
return builder.build();
})
.build();
+ GrpcCallSettings
+ createAutoProtectionPolicyTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createAutoProtectionPolicyMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .setResourceNameExtractor(request -> request.getParent())
+ .build();
+ GrpcCallSettings
+ listAutoProtectionPoliciesTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(listAutoProtectionPoliciesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .setResourceNameExtractor(request -> request.getParent())
+ .build();
+ GrpcCallSettings
+ getAutoProtectionPolicyTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getAutoProtectionPolicyMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .setResourceNameExtractor(request -> request.getName())
+ .build();
+ GrpcCallSettings
+ updateAutoProtectionPolicyTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(updateAutoProtectionPolicyMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add(
+ "auto_protection_policy.name",
+ String.valueOf(request.getAutoProtectionPolicy().getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ deleteAutoProtectionPolicyTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deleteAutoProtectionPolicyMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .setResourceNameExtractor(request -> request.getName())
+ .build();
+ GrpcCallSettings
+ createAutoProtectionPolicyBindingTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createAutoProtectionPolicyBindingMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .setResourceNameExtractor(request -> request.getParent())
+ .build();
+ GrpcCallSettings
+ getAutoProtectionPolicyBindingTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(getAutoProtectionPolicyBindingMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .setResourceNameExtractor(request -> request.getName())
+ .build();
+ GrpcCallSettings<
+ ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse>
+ listAutoProtectionPolicyBindingsTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(listAutoProtectionPolicyBindingsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .setResourceNameExtractor(request -> request.getParent())
+ .build();
+ GrpcCallSettings<
+ ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse>
+ listAppliedAutoProtectionPoliciesTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(listAppliedAutoProtectionPoliciesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .setResourceNameExtractor(request -> request.getParent())
+ .build();
+ GrpcCallSettings
+ initiateDeleteAutoProtectionPolicyBindingTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(initiateDeleteAutoProtectionPolicyBindingMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .setResourceNameExtractor(request -> request.getName())
+ .build();
+ GrpcCallSettings
+ listBindingMatchingResourcesTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(listBindingMatchingResourcesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .setResourceNameExtractor(request -> request.getParent())
+ .build();
GrpcCallSettings listLocationsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
@@ -1603,6 +1972,111 @@ protected GrpcBackupDRStub(
settings.initializeServiceOperationSettings(),
clientContext,
operationsStub);
+ this.createAutoProtectionPolicyCallable =
+ callableFactory.createUnaryCallable(
+ createAutoProtectionPolicyTransportSettings,
+ settings.createAutoProtectionPolicySettings(),
+ clientContext);
+ this.createAutoProtectionPolicyOperationCallable =
+ callableFactory.createOperationCallable(
+ createAutoProtectionPolicyTransportSettings,
+ settings.createAutoProtectionPolicyOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.listAutoProtectionPoliciesCallable =
+ callableFactory.createUnaryCallable(
+ listAutoProtectionPoliciesTransportSettings,
+ settings.listAutoProtectionPoliciesSettings(),
+ clientContext);
+ this.listAutoProtectionPoliciesPagedCallable =
+ callableFactory.createPagedCallable(
+ listAutoProtectionPoliciesTransportSettings,
+ settings.listAutoProtectionPoliciesSettings(),
+ clientContext);
+ this.getAutoProtectionPolicyCallable =
+ callableFactory.createUnaryCallable(
+ getAutoProtectionPolicyTransportSettings,
+ settings.getAutoProtectionPolicySettings(),
+ clientContext);
+ this.updateAutoProtectionPolicyCallable =
+ callableFactory.createUnaryCallable(
+ updateAutoProtectionPolicyTransportSettings,
+ settings.updateAutoProtectionPolicySettings(),
+ clientContext);
+ this.updateAutoProtectionPolicyOperationCallable =
+ callableFactory.createOperationCallable(
+ updateAutoProtectionPolicyTransportSettings,
+ settings.updateAutoProtectionPolicyOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.deleteAutoProtectionPolicyCallable =
+ callableFactory.createUnaryCallable(
+ deleteAutoProtectionPolicyTransportSettings,
+ settings.deleteAutoProtectionPolicySettings(),
+ clientContext);
+ this.deleteAutoProtectionPolicyOperationCallable =
+ callableFactory.createOperationCallable(
+ deleteAutoProtectionPolicyTransportSettings,
+ settings.deleteAutoProtectionPolicyOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.createAutoProtectionPolicyBindingCallable =
+ callableFactory.createUnaryCallable(
+ createAutoProtectionPolicyBindingTransportSettings,
+ settings.createAutoProtectionPolicyBindingSettings(),
+ clientContext);
+ this.createAutoProtectionPolicyBindingOperationCallable =
+ callableFactory.createOperationCallable(
+ createAutoProtectionPolicyBindingTransportSettings,
+ settings.createAutoProtectionPolicyBindingOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.getAutoProtectionPolicyBindingCallable =
+ callableFactory.createUnaryCallable(
+ getAutoProtectionPolicyBindingTransportSettings,
+ settings.getAutoProtectionPolicyBindingSettings(),
+ clientContext);
+ this.listAutoProtectionPolicyBindingsCallable =
+ callableFactory.createUnaryCallable(
+ listAutoProtectionPolicyBindingsTransportSettings,
+ settings.listAutoProtectionPolicyBindingsSettings(),
+ clientContext);
+ this.listAutoProtectionPolicyBindingsPagedCallable =
+ callableFactory.createPagedCallable(
+ listAutoProtectionPolicyBindingsTransportSettings,
+ settings.listAutoProtectionPolicyBindingsSettings(),
+ clientContext);
+ this.listAppliedAutoProtectionPoliciesCallable =
+ callableFactory.createUnaryCallable(
+ listAppliedAutoProtectionPoliciesTransportSettings,
+ settings.listAppliedAutoProtectionPoliciesSettings(),
+ clientContext);
+ this.listAppliedAutoProtectionPoliciesPagedCallable =
+ callableFactory.createPagedCallable(
+ listAppliedAutoProtectionPoliciesTransportSettings,
+ settings.listAppliedAutoProtectionPoliciesSettings(),
+ clientContext);
+ this.initiateDeleteAutoProtectionPolicyBindingCallable =
+ callableFactory.createUnaryCallable(
+ initiateDeleteAutoProtectionPolicyBindingTransportSettings,
+ settings.initiateDeleteAutoProtectionPolicyBindingSettings(),
+ clientContext);
+ this.initiateDeleteAutoProtectionPolicyBindingOperationCallable =
+ callableFactory.createOperationCallable(
+ initiateDeleteAutoProtectionPolicyBindingTransportSettings,
+ settings.initiateDeleteAutoProtectionPolicyBindingOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.listBindingMatchingResourcesCallable =
+ callableFactory.createUnaryCallable(
+ listBindingMatchingResourcesTransportSettings,
+ settings.listBindingMatchingResourcesSettings(),
+ clientContext);
+ this.listBindingMatchingResourcesPagedCallable =
+ callableFactory.createPagedCallable(
+ listBindingMatchingResourcesTransportSettings,
+ settings.listBindingMatchingResourcesSettings(),
+ clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -2015,6 +2489,137 @@ public UnaryCallable initializeServiceCalla
return initializeServiceOperationCallable;
}
+ @Override
+ public UnaryCallable
+ createAutoProtectionPolicyCallable() {
+ return createAutoProtectionPolicyCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ createAutoProtectionPolicyOperationCallable() {
+ return createAutoProtectionPolicyOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listAutoProtectionPoliciesCallable() {
+ return listAutoProtectionPoliciesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listAutoProtectionPoliciesPagedCallable() {
+ return listAutoProtectionPoliciesPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ getAutoProtectionPolicyCallable() {
+ return getAutoProtectionPolicyCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ updateAutoProtectionPolicyCallable() {
+ return updateAutoProtectionPolicyCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata>
+ updateAutoProtectionPolicyOperationCallable() {
+ return updateAutoProtectionPolicyOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ deleteAutoProtectionPolicyCallable() {
+ return deleteAutoProtectionPolicyCallable;
+ }
+
+ @Override
+ public OperationCallable
+ deleteAutoProtectionPolicyOperationCallable() {
+ return deleteAutoProtectionPolicyOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ createAutoProtectionPolicyBindingCallable() {
+ return createAutoProtectionPolicyBindingCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata>
+ createAutoProtectionPolicyBindingOperationCallable() {
+ return createAutoProtectionPolicyBindingOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ getAutoProtectionPolicyBindingCallable() {
+ return getAutoProtectionPolicyBindingCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse>
+ listAutoProtectionPolicyBindingsCallable() {
+ return listAutoProtectionPolicyBindingsCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsPagedResponse>
+ listAutoProtectionPolicyBindingsPagedCallable() {
+ return listAutoProtectionPolicyBindingsPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse>
+ listAppliedAutoProtectionPoliciesCallable() {
+ return listAppliedAutoProtectionPoliciesCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesPagedResponse>
+ listAppliedAutoProtectionPoliciesPagedCallable() {
+ return listAppliedAutoProtectionPoliciesPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ initiateDeleteAutoProtectionPolicyBindingCallable() {
+ return initiateDeleteAutoProtectionPolicyBindingCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ InitiateDeleteAutoProtectionPolicyBindingRequest,
+ AutoProtectionPolicyBinding,
+ OperationMetadata>
+ initiateDeleteAutoProtectionPolicyBindingOperationCallable() {
+ return initiateDeleteAutoProtectionPolicyBindingOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listBindingMatchingResourcesCallable() {
+ return listBindingMatchingResourcesCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesPagedResponse>
+ listBindingMatchingResourcesPagedCallable() {
+ return listBindingMatchingResourcesPagedCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java
index 2831bfbae450..0cb7c895a70c 100644
--- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java
+++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java
@@ -20,11 +20,15 @@
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAppliedAutoProtectionPoliciesPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPoliciesPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPolicyBindingsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanRevisionsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse;
+import static com.google.cloud.backupdr.v1.BackupDRClient.ListBindingMatchingResourcesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse;
import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse;
@@ -46,17 +50,22 @@
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.backupdr.v1.AutoProtectionPolicy;
+import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding;
import com.google.cloud.backupdr.v1.Backup;
import com.google.cloud.backupdr.v1.BackupPlan;
import com.google.cloud.backupdr.v1.BackupPlanAssociation;
import com.google.cloud.backupdr.v1.BackupPlanRevision;
import com.google.cloud.backupdr.v1.BackupVault;
+import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest;
+import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.CreateBackupPlanRequest;
import com.google.cloud.backupdr.v1.CreateBackupVaultRequest;
import com.google.cloud.backupdr.v1.CreateManagementServerRequest;
import com.google.cloud.backupdr.v1.DataSource;
import com.google.cloud.backupdr.v1.DataSourceReference;
+import com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.DeleteBackupPlanRequest;
import com.google.cloud.backupdr.v1.DeleteBackupRequest;
@@ -70,6 +79,8 @@
import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse;
import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest;
import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsResponse;
+import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest;
+import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.GetBackupPlanRequest;
import com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest;
@@ -80,6 +91,13 @@
import com.google.cloud.backupdr.v1.GetManagementServerRequest;
import com.google.cloud.backupdr.v1.InitializeServiceRequest;
import com.google.cloud.backupdr.v1.InitializeServiceResponse;
+import com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest;
+import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest;
+import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest;
+import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse;
import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest;
import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse;
import com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest;
@@ -90,6 +108,8 @@
import com.google.cloud.backupdr.v1.ListBackupVaultsResponse;
import com.google.cloud.backupdr.v1.ListBackupsRequest;
import com.google.cloud.backupdr.v1.ListBackupsResponse;
+import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest;
+import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse;
import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest;
import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse;
import com.google.cloud.backupdr.v1.ListDataSourcesRequest;
@@ -101,6 +121,7 @@
import com.google.cloud.backupdr.v1.RestoreBackupRequest;
import com.google.cloud.backupdr.v1.RestoreBackupResponse;
import com.google.cloud.backupdr.v1.TriggerBackupRequest;
+import com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest;
import com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest;
import com.google.cloud.backupdr.v1.UpdateBackupPlanRequest;
import com.google.cloud.backupdr.v1.UpdateBackupRequest;
@@ -140,11 +161,13 @@ public class HttpJsonBackupDRStub extends BackupDRStub {
private static final TypeRegistry typeRegistry =
TypeRegistry.newBuilder()
.add(ManagementServer.getDescriptor())
+ .add(AutoProtectionPolicy.getDescriptor())
.add(OperationMetadata.getDescriptor())
.add(Empty.getDescriptor())
.add(BackupVault.getDescriptor())
.add(InitializeServiceResponse.getDescriptor())
.add(Backup.getDescriptor())
+ .add(AutoProtectionPolicyBinding.getDescriptor())
.add(DataSource.getDescriptor())
.add(BackupPlan.getDescriptor())
.add(RestoreBackupResponse.getDescriptor())
@@ -1429,6 +1452,10 @@ public class HttpJsonBackupDRStub extends BackupDRStub {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
+ serializer.putQueryParam(
+ fields,
+ "autoProtectionPolicyBinding",
+ request.getAutoProtectionPolicyBinding());
serializer.putQueryParam(fields, "requestId", request.getRequestId());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
@@ -1615,37 +1642,504 @@ public class HttpJsonBackupDRStub extends BackupDRStub {
.setHttpMethod("POST")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
- ProtoMessageRequestFormatter.newBuilder()
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{name=projects/*/locations/*/serviceConfig}:initialize",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "name", request.getName());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("*", request.toBuilder().clearName().build(), true))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(Operation.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .setOperationSnapshotFactory(
+ (InitializeServiceRequest request, Operation response) ->
+ HttpJsonOperationSnapshot.create(response))
+ .build();
+
+ private static final ApiMethodDescriptor
+ createAutoProtectionPolicyMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName("google.cloud.backupdr.v1.BackupDR/CreateAutoProtectionPolicy")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.